Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed May 23, 2024
1 parent ffcdf39 commit 618358e
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public LeastSquaresProblem build() {
* Configure the max evaluations.
*
* @param newMaxEvaluations the maximum number of evaluations permitted.
* @return this
* @return {@code this} instance.
*/
public LeastSquaresBuilder maxEvaluations(final int newMaxEvaluations) {
this.maxEvaluations = newMaxEvaluations;
Expand All @@ -92,7 +92,7 @@ public LeastSquaresBuilder maxEvaluations(final int newMaxEvaluations) {
* Configure the max iterations.
*
* @param newMaxIterations the maximum number of iterations permitted.
* @return this
* @return {@code this} instance.
*/
public LeastSquaresBuilder maxIterations(final int newMaxIterations) {
this.maxIterations = newMaxIterations;
Expand All @@ -103,7 +103,7 @@ public LeastSquaresBuilder maxIterations(final int newMaxIterations) {
* Configure the convergence checker.
*
* @param newChecker the convergence checker.
* @return this
* @return {@code this} instance.
*/
public LeastSquaresBuilder checker(final ConvergenceChecker<Evaluation> newChecker) {
this.checker = newChecker;
Expand All @@ -116,7 +116,7 @@ public LeastSquaresBuilder checker(final ConvergenceChecker<Evaluation> newCheck
* This function is an overloaded version of {@link #checker(ConvergenceChecker)}.
*
* @param newChecker the convergence checker.
* @return this
* @return {@code this} instance.
*/
public LeastSquaresBuilder checkerPair(final ConvergenceChecker<PointVectorValuePair> newChecker) {
return this.checker(LeastSquaresFactory.evaluationChecker(newChecker));
Expand All @@ -127,7 +127,7 @@ public LeastSquaresBuilder checkerPair(final ConvergenceChecker<PointVectorValue
*
* @param value the model function value
* @param jacobian the Jacobian of {@code value}
* @return this
* @return {@code this} instance.
*/
public LeastSquaresBuilder model(final MultivariateVectorFunction value,
final MultivariateMatrixFunction jacobian) {
Expand All @@ -138,7 +138,7 @@ public LeastSquaresBuilder model(final MultivariateVectorFunction value,
* Configure the model function.
*
* @param newModel the model function value and Jacobian
* @return this
* @return {@code this} instance.
*/
public LeastSquaresBuilder model(final MultivariateJacobianFunction newModel) {
this.model = newModel;
Expand All @@ -149,7 +149,7 @@ public LeastSquaresBuilder model(final MultivariateJacobianFunction newModel) {
* Configure the observed data.
*
* @param newTarget the observed data.
* @return this
* @return {@code this} instance.
*/
public LeastSquaresBuilder target(final RealVector newTarget) {
this.target = newTarget;
Expand All @@ -160,7 +160,7 @@ public LeastSquaresBuilder target(final RealVector newTarget) {
* Configure the observed data.
*
* @param newTarget the observed data.
* @return this
* @return {@code this} instance.
*/
public LeastSquaresBuilder target(final double[] newTarget) {
return target(new ArrayRealVector(newTarget, false));
Expand All @@ -170,7 +170,7 @@ public LeastSquaresBuilder target(final double[] newTarget) {
* Configure the initial guess.
*
* @param newStart the initial guess.
* @return this
* @return {@code this} instance.
*/
public LeastSquaresBuilder start(final RealVector newStart) {
this.start = newStart;
Expand All @@ -181,7 +181,7 @@ public LeastSquaresBuilder start(final RealVector newStart) {
* Configure the initial guess.
*
* @param newStart the initial guess.
* @return this
* @return {@code this} instance.
*/
public LeastSquaresBuilder start(final double[] newStart) {
return start(new ArrayRealVector(newStart, false));
Expand All @@ -191,7 +191,7 @@ public LeastSquaresBuilder start(final double[] newStart) {
* Configure the weight matrix.
*
* @param newWeight the weight matrix
* @return this
* @return {@code this} instance.
*/
public LeastSquaresBuilder weight(final RealMatrix newWeight) {
this.weight = newWeight;
Expand Down

0 comments on commit 618358e

Please sign in to comment.