org.jquantlib.math.optimization
Class CostFunction
- java.lang.Object
-
- org.jquantlib.math.optimization.CostFunction
-
- Direct Known Subclasses:
- LeastSquareFunction, ProjectedCostFunction
public abstract class CostFunction extends java.lang.ObjectCost function abstract class for optimization problem.
-
-
Constructor Summary
Constructors Constructor and Description CostFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description doublefiniteDifferenceEpsilon()Defaultepsilon for finite difference methodvoidgradient(Array grad, Array x)Method to overload to compute gradient(f), the first derivative of the cost function with respect toabstract doublevalue(Array x)Method to overload to compute the cost function value indoublevalueAndGradient(Array grad, Array x)Method to overload to compute gradient(f), the first derivative of the cost function with respect to and also the cost functionabstract Arrayvalues(Array x)Method to overload to compute the cost function values in
-
-
-
Method Detail
-
gradient
public void gradient(Array grad, Array x)
Method to overload to compute gradient(f), the first derivative of the cost function with respect to
-
valueAndGradient
public double valueAndGradient(Array grad, Array x)
Method to overload to compute gradient(f), the first derivative of the cost function with respect to and also the cost function
-
finiteDifferenceEpsilon
public double finiteDifferenceEpsilon()
Defaultepsilon for finite difference method
-
value
public abstract double value(Array x)
Method to overload to compute the cost function value in
-
-
DataMelt 3.0 © DataMelt by jWork.ORG