Class StraightLineFit

java.lang.Object
gda.analysis.numerical.straightline.StraightLineFit

public class StraightLineFit extends Object
Class to evaluate straightline expressions for a set of x,y values
  • Constructor Details

    • StraightLineFit

      public StraightLineFit()
  • Method Details

    • fit

      public static Result[] fit(double[][] data, double[] x)
      Parameters:
      data - - data[i] contains y values for a line
      x -
      Returns:
      Array of Result of length equal to data.length
    • fit

      public static Results fit(List<double[]> data, long[] dims, double[] x)
      Parameters:
      data - Points on a line are the set data.get(i)[m] where i varies from point to point on the line
      x -
      Returns:
      Array of Result of length equal to the length of the data arrays
    • fitInt

      public static Results fitInt(List<Object> data, long[] dims, double[] x)
    • fitInt

      public static Results fitInt(List<Object> data, long[] dims, int[] x)
      Parameters:
      data - Points on a line are the set data.get(i)[m] where i varies from point to point on the line
      x -
      Returns:
      Array of Result of length equal to the length of the data arrays