Class SimpleLinearRegression
Object
SimpleLinearRegression
- All Implemented Interfaces:
Computation<SimpleLinearRegression.SimpleLinearRegressionResult,ProtocolBuilderNumeric>
public class SimpleLinearRegression extends Object implements Computation<SimpleLinearRegression.SimpleLinearRegressionResult,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 class
SimpleLinearRegression.SimpleLinearRegressionResult
-
Constructor Summary
Constructors Constructor Description SimpleLinearRegression(List<DRes<SFixed>> x, List<DRes<SFixed>> y)
SimpleLinearRegression(List<DRes<SFixed>> x, List<DRes<SFixed>> y, boolean computeErrors, boolean computeCorrelation)
-
Method Summary
Modifier and Type Method Description DRes<SimpleLinearRegression.SimpleLinearRegressionResult>
buildComputation(ProtocolBuilderNumeric root)
-
Constructor Details
-
Method Details
-
buildComputation
public DRes<SimpleLinearRegression.SimpleLinearRegressionResult> buildComputation(ProtocolBuilderNumeric root)- Specified by:
buildComputation
in interfaceComputation<SimpleLinearRegression.SimpleLinearRegressionResult,ProtocolBuilderNumeric>
-