org.jquantlib.math.functions
Class Constant
- java.lang.Object
-
- org.jquantlib.math.functions.Constant
-
- All Implemented Interfaces:
- Ops.DoubleOp
public final class Constant extends java.lang.Object implements Ops.DoubleOp
A constant function
-
-
Constructor Summary
Constructors Constructor and Description Constant(double value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleop(double a)
-
-
-
Method Detail
-
op
public double op(double a)
- Specified by:
opin interfaceOps.DoubleOp- Parameters:
a- is always discarded- Returns:
- a constant value whatever parameter is received
-
-
DataMelt 3.0 © DataMelt by jWork.ORG