Enum GaussNewtonOptimizer.Decomposition
- java.lang.Object
-
- java.lang.Enum<GaussNewtonOptimizer.Decomposition>
-
- org.hipparchus.optim.nonlinear.vector.leastsquares.GaussNewtonOptimizer.Decomposition
-
- All Implemented Interfaces:
Serializable
,Comparable<GaussNewtonOptimizer.Decomposition>
- Enclosing class:
- GaussNewtonOptimizer
@Deprecated public static enum GaussNewtonOptimizer.Decomposition extends Enum<GaussNewtonOptimizer.Decomposition>
Deprecated.UseMatrixDecomposer
instead.The decomposition algorithm to use to solve the normal equations.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHOLESKY
Deprecated.Solve by forming the normal equations (JTJx=JTr) and using theCholeskyDecomposition
.LU
Deprecated.Solve by forming the normal equations (JTJx=JTr) and using theLUDecomposition
.QR
Deprecated.Solve the linear least squares problem (Jx=r) using theQRDecomposition
.SVD
Deprecated.Solve the linear least squares problem using theSingularValueDecomposition
.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected abstract MatrixDecomposer
getDecomposer()
Deprecated.Get the equivalent matrix decomposer.protected abstract boolean
isFormNormalEquations()
Deprecated.Get if this decomposition forms the normal equations explicitly.protected abstract RealVector
solve(RealMatrix jacobian, RealVector residuals)
Deprecated.Solve the linear least squares problem Jx=r.static GaussNewtonOptimizer.Decomposition
valueOf(String name)
Deprecated.Returns the enum constant of this type with the specified name.static GaussNewtonOptimizer.Decomposition[]
values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LU
public static final GaussNewtonOptimizer.Decomposition LU
Deprecated.Solve by forming the normal equations (JTJx=JTr) and using theLUDecomposition
.Theoretically this method takes mn2/2 operations to compute the normal matrix and n3/3 operations (m > n) to solve the system using the LU decomposition.
-
QR
public static final GaussNewtonOptimizer.Decomposition QR
Deprecated.Solve the linear least squares problem (Jx=r) using theQRDecomposition
.Theoretically this method takes mn2 - n3/3 operations (m > n) and has better numerical accuracy than any method that forms the normal equations.
-
CHOLESKY
public static final GaussNewtonOptimizer.Decomposition CHOLESKY
Deprecated.Solve by forming the normal equations (JTJx=JTr) and using theCholeskyDecomposition
.Theoretically this method takes mn2/2 operations to compute the normal matrix and n3/6 operations (m > n) to solve the system using the Cholesky decomposition.
-
SVD
public static final GaussNewtonOptimizer.Decomposition SVD
Deprecated.Solve the linear least squares problem using theSingularValueDecomposition
.This method is slower, but can provide a solution for rank deficient and nearly singular systems.
-
-
Method Detail
-
values
public static GaussNewtonOptimizer.Decomposition[] values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GaussNewtonOptimizer.Decomposition c : GaussNewtonOptimizer.Decomposition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GaussNewtonOptimizer.Decomposition valueOf(String name)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
solve
protected abstract RealVector solve(RealMatrix jacobian, RealVector residuals)
Deprecated.Solve the linear least squares problem Jx=r.- Parameters:
jacobian
- the Jacobian matrix, J. the number of rows >= the number or columns.residuals
- the computed residuals, r.- Returns:
- the solution x, to the linear least squares problem Jx=r.
- Throws:
MathIllegalStateException
- if the matrix properties (e.g. singular) do not permit a solution.
-
getDecomposer
protected abstract MatrixDecomposer getDecomposer()
Deprecated.Get the equivalent matrix decomposer.- Returns:
- the decomposer.
-
isFormNormalEquations
protected abstract boolean isFormNormalEquations()
Deprecated.Get if this decomposition forms the normal equations explicitly.- Returns:
true
if the normal equations are formed explicitly,false
otherwise.
-
-