Class LinearLeastSquares

java.lang.Object
uk.ac.diamond.scisoft.analysis.optimize.LinearLeastSquares

public class LinearLeastSquares extends Object
Basic least squares solver using SVD method
  • Constructor Summary

    Constructors
    Constructor
    Description
    LinearLeastSquares(double tolerance)
    Base constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    double[]
    solve(org.eclipse.january.dataset.Dataset matrix, org.eclipse.january.dataset.Dataset data, org.eclipse.january.dataset.Dataset sigmasq)
    Solve linear least square problem defined by

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LinearLeastSquares

      public LinearLeastSquares(double tolerance)
      Base constructor
      Parameters:
      tolerance - ratio of lowest to highest singular value to allow
  • Method Details

    • solve

      public double[] solve(org.eclipse.january.dataset.Dataset matrix, org.eclipse.january.dataset.Dataset data, org.eclipse.january.dataset.Dataset sigmasq)
      Solve linear least square problem defined by
       A x = b
       
      Parameters:
      matrix -
      A
      data -
      b
      sigmasq - estimate of squared error on each data point
      Returns:
      array of values