Click or drag to resize

SimpleRegression Methods

The SimpleRegression type exposes the following members.

Methods
 NameDescription
Public methodStatic memberFit(IEnumerableTupleDouble, Double) Least-Squares fitting the points (x,y) to a line y : x -> a+b*x, returning its best fitting parameters as (a, b) tuple, where a is the intercept and b the slope.
Public methodStatic memberFit(IEnumerableValueTupleDouble, Double) Least-Squares fitting the points (x,y) to a line y : x -> a+b*x, returning its best fitting parameters as (a, b) tuple, where a is the intercept and b the slope.
Public methodStatic memberFit(Double, Double) Least-Squares fitting the points (x,y) to a line y : x -> a+b*x, returning its best fitting parameters as (a, b) tuple, where a is the intercept and b the slope.
Public methodStatic memberFitThroughOrigin(IEnumerableTupleDouble, Double) Least-Squares fitting the points (x,y) to a line y : x -> b*x, returning its best fitting parameter b, where the intercept is zero and b the slope.
Public methodStatic memberFitThroughOrigin(Double, Double) Least-Squares fitting the points (x,y) to a line y : x -> b*x, returning its best fitting parameter b, where the intercept is zero and b the slope.
Top
See Also