org.ddogleg.optimization.wrap
Class Individual_to_CoupledJacobian
- java.lang.Object
-
- org.ddogleg.optimization.wrap.Individual_to_CoupledJacobian
-
- All Implemented Interfaces:
- CoupledJacobian
public class Individual_to_CoupledJacobian extends java.lang.Object implements CoupledJacobian
-
-
Constructor Summary
Constructors Constructor and Description Individual_to_CoupledJacobian(FunctionNtoM func, FunctionNtoMxN jacobian)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcomputeFunctions(double[] output)voidcomputeJacobian(double[] jacobian)Processes the input parameters into the 2D Jacobian matrix.intgetM()Number of functions.intgetN()Number of input parameters being optimized.voidsetInput(double[] x)Specifies the input parameters.
-
-
-
Constructor Detail
-
Individual_to_CoupledJacobian
public Individual_to_CoupledJacobian(FunctionNtoM func, FunctionNtoMxN jacobian)
-
-
Method Detail
-
getN
public int getN()
Description copied from interface:CoupledJacobianNumber of input parameters being optimized.- Specified by:
getNin interfaceCoupledJacobian
-
getM
public int getM()
Description copied from interface:CoupledJacobianNumber of functions.- Specified by:
getMin interfaceCoupledJacobian
-
setInput
public void setInput(double[] x)
Description copied from interface:CoupledJacobianSpecifies the input parameters. The user can modify these values and they will be modified inside the optimization function too.- Specified by:
setInputin interfaceCoupledJacobian- Parameters:
x- Optimization parameters.
-
computeFunctions
public void computeFunctions(double[] output)
- Specified by:
computeFunctionsin interfaceCoupledJacobian
-
computeJacobian
public void computeJacobian(double[] jacobian)
Description copied from interface:CoupledJacobianProcesses the input parameters into the 2D Jacobian matrix. The matrix has a dimension of M rows and N columns and is formatted as a row major 1D-array. EJML can be used to provide a matrix wrapper around the output array: DenseMatrix J = DenseMatrix.wrap(m,n,output);
The user can modify the input parameters here and the optimizer must use those changes.
- Specified by:
computeJacobianin interfaceCoupledJacobian- Parameters:
jacobian- Row major array with M rows and N columns.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG