Includes the observed values, computed model function, and
convergence/divergence criteria. Weights are implicit in Evaluation#getResiduals() and Evaluation#getJacobian().
Instances are typically either created progressively using a builder or created at once using a factory.
LeastSquaresBuilder, LeastSquaresFactory, LeastSquaresAdapter
| Modifier and Type | Class and Description |
|---|---|
| public static interface | LeastSquaresProblem.
An evaluation of a |
| Modifier and Type | Method and Description |
|---|---|
| public LeastSquaresProblem. | Returns: the model's value and derivative at the given point.the parameter values. point)Evaluate the model at the specified point. |
| public int | Returns: the number of scalar observationsGet the number of observations (rows in the Jacobian) in this problem. |
| public int | Returns: the number of scalar parametersGet the number of parameters (columns in the Jacobian) in this problem. |
| public RealVector |
| evaluate | back to summary |
|---|---|
| public LeastSquaresProblem. Evaluate the model at the specified point.
| |
| getObservationSize | back to summary |
|---|---|
| public int getObservationSize() Get the number of observations (rows in the Jacobian) in this problem.
| |
| getParameterSize | back to summary |
|---|---|
| public int getParameterSize() Get the number of parameters (columns in the Jacobian) in this problem.
| |
| getStart | back to summary |
|---|---|
| public RealVector getStart() Gets the initial guess.
| |
LeastSquaresProblem at a particular point. This class
also computes several quantities derived from the value and its Jacobian.
| Modifier and Type | Method and Description |
|---|---|
| public double | |
| public RealMatrix | Returns: the covariance matrix.Singularity threshold. threshold)Get the covariance matrix of the optimized parameters. |
| public RealMatrix | |
| public RealVector | Returns: the point provided toevaluate(RealVector).Get the abscissa (independent variables) of this evaluation. |
| public RealVector | |
| public double | |
| public RealVector | Returns: an estimate of the standard deviation of the optimized parametersSingularity threshold (see covarianceSingularityThreshold)computeCovariances).Get an estimate of the standard deviation of the parameters. |
| getCost | back to summary |
|---|---|
| public double getCost() Get the cost.
| |
| getCovariances | back to summary |
|---|---|
| public RealMatrix getCovariances(double threshold) Get the covariance matrix of the optimized parameters.
| |
| getJacobian | back to summary |
|---|---|
| public RealMatrix getJacobian() Get the weighted Jacobian matrix.
| |
| getPoint | back to summary |
|---|---|
| public RealVector getPoint() Get the abscissa (independent variables) of this evaluation.
| |
| getResiduals | back to summary |
|---|---|
| public RealVector getResiduals() Get the weighted residuals. The residual is the difference between the observed (target) values and the model (objective function) value. There is one residual for each element of the vector-valued function. The raw residuals are then multiplied by the square root of the weight matrix.
| |
| getRMS | back to summary |
|---|---|
| public double getRMS() Get the normalized cost. It is the square-root of the sum of squared of the residuals, divided by the number of measurements.
| |
| getSigma | back to summary |
|---|---|
| public RealVector getSigma(double covarianceSingularityThreshold) Get an estimate of the standard deviation of the parameters. The returned
values are the square root of the diagonal coefficients of the covariance
matrix,
| |