Class SolverLSM

java.lang.Object
xal.extension.fit.lsm.SolverLSM
All Implemented Interfaces:
FitSolver

public class SolverLSM extends Object implements FitSolver
The least square method solver
Author:
shishlo
  • Constructor Details

    • SolverLSM

      public SolverLSM()
  • Method Details

    • solve

      public boolean solve(DataStore ds, ModelFunction mf, double[] iniArr, double[] errIniArr, boolean[] useArr)
      Solve the fitting problem.
      Specified by:
      solve in interface FitSolver
      Parameters:
      ds - The data for fitting.
      iniArr - The initial values of the parameters.
      errIniArr - The parameter values' errors.
      useArr - The mask array specifying if the parameter will be used in fitting.
      mf - The model function
      Returns:
      The boolean value specifying success of fitting.
    • main

      public static void main(String[] args)
      MAIN for debugging
      Parameters:
      args - The array of strings as parameters