Class LinearRegression
Object
LinearRegression
- All Implemented Interfaces:
Computation<LinearRegression.LinearRegressionResult,ProtocolBuilderNumeric>
public class LinearRegression extends Object implements Computation<LinearRegression.LinearRegressionResult,ProtocolBuilderNumeric>
Fit a linear model to the given dataset and output estimates for the coefficients and the regression
error variance (s2) which is equal to the regression standard error squared,
the coefficient of determination (R2) and the standard errors (squared) for each coefficient
estimate. (see
LinearRegression.LinearRegressionResult
.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LinearRegression.LinearRegressionResult
-
Constructor Summary
Constructors Constructor Description LinearRegression(List<ArrayList<DRes<SFixed>>> observations, ArrayList<DRes<SFixed>> y)
LinearRegression(List<ArrayList<DRes<SFixed>>> observations, ArrayList<DRes<SFixed>> y, boolean computeErrors)
-
Method Summary
Modifier and Type Method Description DRes<LinearRegression.LinearRegressionResult>
buildComputation(ProtocolBuilderNumeric builder)
-
Constructor Details
-
Method Details
-
buildComputation
public DRes<LinearRegression.LinearRegressionResult> buildComputation(ProtocolBuilderNumeric builder)- Specified by:
buildComputation
in interfaceComputation<LinearRegression.LinearRegressionResult,ProtocolBuilderNumeric>
-