类 LeastSquaresBuilder
java.lang.Object
org.hipparchus.optim.nonlinear.vector.leastsquares.LeastSquaresBuilder
一个可变的构建器,用于
LeastSquaresProblem。
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()从此构建器中的数据构造一个LeastSquaresProblem。checker(ConvergenceChecker<LeastSquaresProblem.Evaluation> newChecker) 配置收敛检查器。checkerPair(ConvergenceChecker<PointVectorValuePair> newChecker) 配置收敛检查器。lazyEvaluation(boolean newValue) 配置评估是否为延迟或即时。maxEvaluations(int newMaxEvaluations) 配置最大评估次数。maxIterations(int newMaxIterations) 配置最大迭代次数。model(MultivariateVectorFunction value, MultivariateMatrixFunction jacobian) 配置模型函数。model(MultivariateJacobianFunction newModel) 配置模型函数。parameterValidator(ParameterValidator newValidator) 配置模型参数的验证器。start(double[] newStart) 配置初始猜测。start(RealVector newStart) 配置初始猜测。target(double[] newTarget) 配置观测数据。target(RealVector newTarget) 配置观测数据。weight(RealMatrix newWeight) 配置权重矩阵。
-
构造器详细资料
-
LeastSquaresBuilder
public LeastSquaresBuilder()空构造函数。这个构造函数并非绝对必要,但它可以防止在JDK 18及更高版本中出现虚假的javadoc警告。
- 从以下版本开始:
- 3.0
-
-
方法详细资料
-
build
从此构建器中的数据构造一个LeastSquaresProblem。- 返回:
-
一个新的
LeastSquaresProblem。
-
maxEvaluations
配置最大评估次数。- 参数:
-
newMaxEvaluations- 允许的最大评估次数。 - 返回:
- this
-
maxIterations
配置最大迭代次数。- 参数:
-
newMaxIterations- 允许的最大迭代次数。 - 返回:
- this
-
checker
配置收敛检查器。- 参数:
-
newChecker- 收敛检查器。 - 返回:
- this
-
checkerPair
配置收敛检查器。此函数是
checker(ConvergenceChecker)的重载版本。- 参数:
-
newChecker- 收敛检查器。 - 返回:
- this
-
model
public LeastSquaresBuilder model(MultivariateVectorFunction value, MultivariateMatrixFunction jacobian) 配置模型函数。- 参数:
-
value- 模型函数值 -
jacobian-value的雅可比矩阵 - 返回:
- this
-
model
配置模型函数。- 参数:
-
newModel- 模型函数值和雅可比矩阵 - 返回:
- this
-
target
配置观测数据。- 参数:
-
newTarget- 观测数据。 - 返回:
- this
-
target
配置观测数据。- 参数:
-
newTarget- 观测数据。 - 返回:
- this
-
start
配置初始猜测。- 参数:
-
newStart- 初始猜测。 - 返回:
- this
-
start
配置初始猜测。- 参数:
-
newStart- 初始猜测。 - 返回:
- this
-
weight
配置权重矩阵。- 参数:
-
newWeight- 权重矩阵 - 返回:
- this
-
lazyEvaluation
配置评估是否为延迟或即时。- 参数:
-
newValue- 是否执行延迟评估。 - 返回:
- 此对象。
-
parameterValidator
配置模型参数的验证器。- 参数:
-
newValidator- 参数验证器。 - 返回:
- 此对象。
-