Class LinearRegression
java.lang.Object
dk.alexandra.fresco.stat.regression.linear.LinearRegression
- All Implemented Interfaces:
dk.alexandra.fresco.framework.builder.Computation<LinearRegression.LinearRegressionResult,dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
public class LinearRegression extends Object implements dk.alexandra.fresco.framework.builder.Computation<LinearRegression.LinearRegressionResult,dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
Fit a linear model to the given dataset and output estimates for the coefficients and some model
diagnostics (see
LinearRegression.LinearRegressionResult).-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLinearRegression.LinearRegressionResult -
Constructor Summary
Constructors Constructor Description LinearRegression(List<ArrayList<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>>> observations, ArrayList<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>> y) -
Method Summary
Modifier and Type Method Description dk.alexandra.fresco.framework.DRes<LinearRegression.LinearRegressionResult>buildComputation(dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric builder)
-
Constructor Details
-
Method Details
-
buildComputation
public dk.alexandra.fresco.framework.DRes<LinearRegression.LinearRegressionResult> buildComputation(dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric builder)- Specified by:
buildComputationin interfacedk.alexandra.fresco.framework.builder.Computation<LinearRegression.LinearRegressionResult,dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
-