Class LevenbergMarquardtOptimizer.InternalData
java.lang.Object
org.apache.commons.math3.fitting.leastsquares.LevenbergMarquardtOptimizer.InternalData
- Enclosing class:
LevenbergMarquardtOptimizer
Holds internal data.
This structure was created so that all optimizer fields can be "final".
Code should be further refactored in order to not pass around arguments
that will modified in-place (cf. "work" arrays).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final double[]
Coefficients of the Householder transforms vectors.private final double[]
Diagonal elements of the R matrix in the QR decomposition.private final double[]
Norms of the columns of the jacobian matrix.private final int[]
Columns permutation array.private final int
Rank of the Jacobian matrix.private final double[][]
Weighted Jacobian. -
Constructor Summary
ConstructorsConstructorDescriptionInternalData
(double[][] weightedJacobian, int[] permutation, int rank, double[] diagR, double[] jacNorm, double[] beta) -
Method Summary
-
Field Details
-
weightedJacobian
private final double[][] weightedJacobianWeighted Jacobian. -
permutation
private final int[] permutationColumns permutation array. -
rank
private final int rankRank of the Jacobian matrix. -
diagR
private final double[] diagRDiagonal elements of the R matrix in the QR decomposition. -
jacNorm
private final double[] jacNormNorms of the columns of the jacobian matrix. -
beta
private final double[] betaCoefficients of the Householder transforms vectors.
-
-
Constructor Details
-
InternalData
InternalData(double[][] weightedJacobian, int[] permutation, int rank, double[] diagR, double[] jacNorm, double[] beta) - Parameters:
weightedJacobian
- Weighted Jacobian.permutation
- Columns permutation array.rank
- Rank of the Jacobian matrix.diagR
- Diagonal elements of the R matrix in the QR decomposition.jacNorm
- Norms of the columns of the jacobian matrix.beta
- Coefficients of the Householder transforms vectors.
-