Class LinearRegressionFunction
java.lang.Object
org.apache.poi.ss.formula.functions.Fixed2ArgFunction
org.apache.poi.ss.formula.functions.LinearRegressionFunction
- All Implemented Interfaces:
Function
,Function2Arg
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)
(http://introcs.cs.princeton.edu/java/97data/LinearRegression.java.html) Syntax:
INTERCEPT(arrayX, arrayY)
or SLOPE(arrayX, arrayY)
- Author:
- Johan Karlsteen
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.apache.poi.ss.formula.functions.Fixed2ArgFunction
evaluate
-
Field Details
-
function
-
-
Constructor Details
-
LinearRegressionFunction
-
-
Method Details
-
evaluate
Description copied from interface:Function2Arg
-