Class SimpleLinearRegression
java.lang.Object
dk.alexandra.fresco.stat.regression.linear.SimpleLinearRegression
- All Implemented Interfaces:
dk.alexandra.fresco.framework.builder.Computation<SimpleLinearRegression.SimpleLinearRegressionResult,dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
public class SimpleLinearRegression extends Object implements dk.alexandra.fresco.framework.builder.Computation<SimpleLinearRegression.SimpleLinearRegressionResult,dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
This computation returns coefficients a and b based on a simple linear regression of the observed
x and y values.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSimpleLinearRegression.SimpleLinearRegressionResult -
Constructor Summary
Constructors Constructor Description SimpleLinearRegression(List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>> x, List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>> y)SimpleLinearRegression(List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>> x, List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>> y, boolean computeErrors, boolean computeCorrelation) -
Method Summary
Modifier and Type Method Description dk.alexandra.fresco.framework.DRes<SimpleLinearRegression.SimpleLinearRegressionResult>buildComputation(dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric root)
-
Constructor Details
-
Method Details
-
buildComputation
public dk.alexandra.fresco.framework.DRes<SimpleLinearRegression.SimpleLinearRegressionResult> buildComputation(dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric root)- Specified by:
buildComputationin interfacedk.alexandra.fresco.framework.builder.Computation<SimpleLinearRegression.SimpleLinearRegressionResult,dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
-