Class Slope

  • All Implemented Interfaces:
    Function, Function2Arg

    public final class Slope
    extends Fixed2ArgFunction
    Implementation of Excel function SLOPE()

    Calculates the SLOPE of 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:
    SLOPE(arrayX, arrayY)