public class LeastSquaresBuilder
extends java.lang.Object
LeastSquaresProblem
s.LeastSquaresFactory
Modifier and Type | Field and Description |
---|---|
private ConvergenceChecker<LeastSquaresProblem.Evaluation> |
checker
convergence checker
|
private int |
maxEvaluations
max evaluations
|
private int |
maxIterations
max iterations
|
private MultivariateJacobianFunction |
model
model function
|
private RealVector |
start
initial guess
|
private RealVector |
target
observed values
|
private RealMatrix |
weight
weight matrix
|
Constructor and Description |
---|
LeastSquaresBuilder() |
Modifier and Type | Method and Description |
---|---|
LeastSquaresProblem |
build()
Construct a
LeastSquaresProblem from the data in this builder. |
LeastSquaresBuilder |
checker(ConvergenceChecker<LeastSquaresProblem.Evaluation> newChecker)
Configure the convergence checker.
|
LeastSquaresBuilder |
checkerPair(ConvergenceChecker<PointVectorValuePair> newChecker)
Configure the convergence checker.
|
LeastSquaresBuilder |
maxEvaluations(int newMaxEvaluations)
Configure the max evaluations.
|
LeastSquaresBuilder |
maxIterations(int newMaxIterations)
Configure the max iterations.
|
LeastSquaresBuilder |
model(MultivariateJacobianFunction newModel)
Configure the model function.
|
LeastSquaresBuilder |
model(MultivariateVectorFunction value,
MultivariateMatrixFunction jacobian)
Configure the model function.
|
LeastSquaresBuilder |
start(double[] newStart)
Configure the initial guess.
|
LeastSquaresBuilder |
start(RealVector newStart)
Configure the initial guess.
|
LeastSquaresBuilder |
target(double[] newTarget)
Configure the observed data.
|
LeastSquaresBuilder |
target(RealVector newTarget)
Configure the observed data.
|
LeastSquaresBuilder |
weight(RealMatrix newWeight)
Configure the weight matrix.
|
private int maxEvaluations
private int maxIterations
private ConvergenceChecker<LeastSquaresProblem.Evaluation> checker
private MultivariateJacobianFunction model
private RealVector target
private RealVector start
private RealMatrix weight
public LeastSquaresProblem build()
LeastSquaresProblem
from the data in this builder.LeastSquaresProblem
.public LeastSquaresBuilder maxEvaluations(int newMaxEvaluations)
newMaxEvaluations
- the maximum number of evaluations permitted.public LeastSquaresBuilder maxIterations(int newMaxIterations)
newMaxIterations
- the maximum number of iterations permitted.public LeastSquaresBuilder checker(ConvergenceChecker<LeastSquaresProblem.Evaluation> newChecker)
newChecker
- the convergence checker.public LeastSquaresBuilder checkerPair(ConvergenceChecker<PointVectorValuePair> newChecker)
checker(ConvergenceChecker)
.newChecker
- the convergence checker.public LeastSquaresBuilder model(MultivariateVectorFunction value, MultivariateMatrixFunction jacobian)
value
- the model function valuejacobian
- the Jacobian of value
public LeastSquaresBuilder model(MultivariateJacobianFunction newModel)
newModel
- the model function value and Jacobianpublic LeastSquaresBuilder target(RealVector newTarget)
newTarget
- the observed data.public LeastSquaresBuilder target(double[] newTarget)
newTarget
- the observed data.public LeastSquaresBuilder start(RealVector newStart)
newStart
- the initial guess.public LeastSquaresBuilder start(double[] newStart)
newStart
- the initial guess.public LeastSquaresBuilder weight(RealMatrix newWeight)
newWeight
- the weight matrixCopyright (c) 2003-2014 Apache Software Foundation