Deprecated
All classes and interfaces in this package are deprecated.
The optimizers that were provided here were moved to the
org. package
(cf. MATH-1008).
| Modifier and Type | Field and Description |
|---|---|
| private double | cost
Cost value (square root of the sum of the residuals). |
| private RealMatrix | weightMatrixSqrt
Square-root of the weight matrix. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected double | |
| public double[][] | Returns: the covariance matrix.Model parameters. params, double Singularity threshold. threshold)Get the covariance matrix of the optimized parameters. |
| protected double[] | Returns: the residuals.Value of the the objective function. This is
the value returned from a call to
objectiveValue)computeObjectiveValue
(whose array argument contains the model parameters).Computes the residuals. |
| public double[] | Returns: an estimate of the standard deviation of the optimized parametersModel parameters. params, double Singularity threshold (see
covarianceSingularityThreshold)computeCovariances).Computes an estimate of the standard deviation of the parameters. |
| protected RealMatrix | Returns: the weighted Jacobian: W1/2 J.Model parameters at which to compute the Jacobian. params)Computes the weighted Jacobian matrix. |
| public double | Returns: chi-square valueGet a Chi-Square-like value assuming the N residuals follow N distinct normal distributions centered on 0 and whose variances are the reciprocal of the weights. |
| public double | |
| public RealMatrix | Returns: the square-root of the weight matrix.Gets the square-root of the weight matrix. |
| public PointVectorValuePair | Returns: a point/value pair that satisfies the convergence criteria.Optimization data. In addition to those documented in
optData)JacobianMultivariateVectorOptimizer, this method will register the following data:
Overrides org. Stores data and performs the optimization. |
| protected void | parseOptimizationData(OptimizationData...
Optimization data. The following data will be looked for:
optData)
Scans the list of (required and optional) optimization data that characterize the problem. |
| protected void | |
| private RealMatrix | Returns: the square-root of the weight matrix.Symmetric, positive-definite (weight) matrix. m)Computes the square-root of the weight matrix. |
| cost | back to summary |
|---|---|
| private double cost Cost value (square root of the sum of the residuals). | |
| weightMatrixSqrt | back to summary |
|---|---|
| private RealMatrix weightMatrixSqrt Square-root of the weight matrix. | |
| AbstractLeastSquaresOptimizer | back to summary |
|---|---|
protected AbstractLeastSquaresOptimizer(ConvergenceChecker<PointVectorValuePair> checker)
| |
| computeCost | back to summary |
|---|---|
| protected double computeCost(double[] residuals) Computes the cost.
| |
| computeCovariances | back to summary |
|---|---|
| public double[][] computeCovariances(double[] params, double threshold) Get the covariance matrix of the optimized parameters.
| |
| computeResiduals | back to summary |
|---|---|
| protected double[] computeResiduals(double[] objectiveValue) Computes the 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.
| |
| computeSigma | back to summary |
|---|---|
| public double[] computeSigma(double[] params, double covarianceSingularityThreshold) Computes an estimate of the standard deviation of the parameters. The
returned values are the square root of the diagonal coefficients of the
covariance matrix,
| |
| computeWeightedJacobian | back to summary |
|---|---|
| protected RealMatrix computeWeightedJacobian(double[] params) Computes the weighted Jacobian matrix.
| |
| getChiSquare | back to summary |
|---|---|
| public double getChiSquare() Get a Chi-Square-like value assuming the N residuals follow N distinct normal distributions centered on 0 and whose variances are the reciprocal of the weights.
| |
| getRMS | back to summary |
|---|---|
| public double getRMS() Gets the root-mean-square (RMS) value. The RMS the root of the arithmetic mean of the square of all weighted residuals. This is related to the criterion that is minimized by the optimizer as follows: If c if the criterion, and n is the number of measurements, then the RMS is sqrt (c/n).
| |
| getWeightSquareRoot | back to summary |
|---|---|
| public RealMatrix getWeightSquareRoot() Gets the square-root of the weight matrix.
| |
| optimize | back to summary |
|---|---|
| public PointVectorValuePair optimize(OptimizationData... optData) throws TooManyEvaluationsException Overrides org. Doc from org. Stores data and performs the optimization. The list of parameters is open-ended so that sub-classes can extend it with arguments specific to their concrete implementations. When the method is called multiple times, instance data is overwritten only when actually present in the list of arguments: when not specified, data set in a previous call is retained (and thus is optional in subsequent calls). Important Note Subclasses must override
| |
| parseOptimizationData | back to summary |
|---|---|
| protected void parseOptimizationData(OptimizationData... optData) Scans the list of (required and optional) optimization data that
characterize the problem.
If the weight matrix is specified, the
| |
| setCost | back to summary |
|---|---|
| protected void setCost(double cost) Sets the cost.
| |
| squareRoot | back to summary |
|---|---|
| private RealMatrix squareRoot(RealMatrix m) Computes the square-root of the weight matrix.
| |