org.jquantlib.math.optimization
Class LeastSquareFunction
- java.lang.Object
-
- org.jquantlib.math.optimization.CostFunction
-
- org.jquantlib.math.optimization.LeastSquareFunction
-
public class LeastSquareFunction extends CostFunction
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidgradient(Array grad_f, Array x)Method to overload to compute gradient(f), the first derivative of the cost function with respect todoublevalue(Array x)Method to overload to compute the cost function value indoublevalueAndGradient(Array grad_f, Array x)Method to overload to compute gradient(f), the first derivative of the cost function with respect to and also the cost functionArrayvalues(Array x)Method to overload to compute the cost function values in-
Methods inherited from class org.jquantlib.math.optimization.CostFunction
finiteDifferenceEpsilon
-
-
-
-
Method Detail
-
value
public double value(Array x)
Description copied from class:CostFunctionMethod to overload to compute the cost function value in- Specified by:
valuein classCostFunction
-
gradient
public void gradient(Array grad_f, Array x)
Description copied from class:CostFunctionMethod to overload to compute gradient(f), the first derivative of the cost function with respect to- Overrides:
gradientin classCostFunction
-
valueAndGradient
public double valueAndGradient(Array grad_f, Array x)
Description copied from class:CostFunctionMethod to overload to compute gradient(f), the first derivative of the cost function with respect to and also the cost function- Overrides:
valueAndGradientin classCostFunction
-
values
public Array values(Array x)
Description copied from class:CostFunctionMethod to overload to compute the cost function values in- Specified by:
valuesin classCostFunction
-
-
DataMelt 3.0 © DataMelt by jWork.ORG