Class LinearRegressionFunction

  • All Implemented Interfaces:
    Function, Function2Arg

    public final class LinearRegressionFunction
    extends Fixed2ArgFunction
    Base class for linear regression functions. Calculates the linear regression line that is used to predict y values from x values
    (http://introcs.cs.princeton.edu/java/97data/LinearRegression.java.html) Syntax:
    INTERCEPT(arrayX, arrayY)

    or SLOPE(arrayX, arrayY)