Interface IFitter

All Known Implementing Classes:
ALeastSquaresFitter, ErfcFitter, ErfFitter, ExponentialDecayFitter, GaussianFitter, LorentzianFitter, MultiGaussianFitter, PolynomialFitter, PowerLawFitter

public interface IFitter
  • Method Summary

    Modifier and Type
    Method
    Description
    fit(double[] x, double[] y)
    Fits a curve to the given data points, returning the fit result.
    fit(double[] x, double[] y, double[] weights)
    Fits a curve to the given data points with weights, returning the fit result.
  • Method Details

    • fit

      FitResult fit(double[] x, double[] y)
      Fits a curve to the given data points, returning the fit result.
      Parameters:
      x - the x values of the data points
      y - the y values of the data points
      Returns:
      the fit result containing the fitted curve and parameters
    • fit

      FitResult fit(double[] x, double[] y, double[] weights)
      Fits a curve to the given data points with weights, returning the fit result.
      Parameters:
      x - the x values of the data points
      y - the y values of the data points
      weights - the weights for each data point
      Returns:
      the fit result containing the fitted curve and parameters