public final class Intercept extends Fixed2ArgFunction
Calculates the INTERCEPT 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:
INTERCEPT(arrayX, arrayY)
Constructor and Description |
---|
Intercept() |
Modifier and Type | Method and Description |
---|---|
ValueEval |
evaluate(int srcRowIndex,
int srcColumnIndex,
ValueEval arg0,
ValueEval arg1)
|
evaluate
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1)
Function2Arg
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.