Linear regression calculation without statistic
Namespace:
Hyleos.Mathematic.RegressionAssembly: Hyleos.Mathematic (in Hyleos.Mathematic.dll) Version: 1.0.1.1 (1.0.1.1)
Syntax
| C# |
|---|
public void Regress( double[] values, out double a, out double b ) |
| Visual Basic (Declaration) |
|---|
Public Sub Regress ( _ values As Double(), _ <OutAttribute> ByRef a As Double, _ <OutAttribute> ByRef b As Double _ ) |
| Visual C++ |
|---|
public: void Regress( array<double>^ values, [OutAttribute] double% a, [OutAttribute] double% b ) |
Parameters
- values
- Type: array<
System..::.Double
>[]()[]
double array
- a
- Type:
System..::.Double
%
slope for y = ax + b
- b
- Type:
System..::.Double
%
intercept for y = ax + b