Method | Description | |
---|---|---|
AddPoint ( ContinuousXYPoint point ) : void | ||
AddPoints ( IEnumerable |
||
DiagnoseRegression ( double>.Func |
||
FitLine ( ) : System |
Initializes a new instance of the FitLine class.
|
|
FitLine ( IEnumerable |
||
ModelPredictX2Y ( double x ) : double |
Return the predicted Y at given X
|
|
ModelPredictY2X ( double y ) : double |
Return the predicted Y at given X
|
|
PerformRegression ( ) : void |
Using current fits points stored in the fitline to initiate regression
|
|
PerformRegression ( IEnumerable |
Refit a group of points to the fit line.
|
|
RemoveOutlierWithHighestCookDistance ( int minFitPoints ) : int |
The remove outlier with highest cook distance.
|
|
RemoveOutliersAboveThreshold ( double CooksDThreshold, int minFitPoints ) : int |
The remove outliers above threshold.
|
|
RemovePoint ( ContinuousXYPoint point ) : void | ||
ResetPoints ( IEnumerable |
Method | Description | |
---|---|---|
CalculateMSE ( ) : double | ||
CalculateRSquared ( ) : double |
Calculate R-square(Coefficient of determination)
|
|
ComputeResidual ( ContinuousXYPoint point ) : double |
Compute the residual of a fit point.
|
|
CooksDistance ( ContinuousXYPoint point, double ssh, double meanX, int pointsCount, double &leverage ) : double |
The cooks distance.
|
|
DiagnosePoints ( double>.Func |
Calculate Cook's distance for all points
|
|
LeastSquaresFitLinear ( IEnumerable |
Computes fit FitLine for potential voltage group and writes
|
|
LeastSquaresFitdLinear ( IEnumerable |
wrapper for updating gain and offset using LeastSquaresFitLinear
|
Method | Description | |
---|---|---|
CalculatedRSquaredVanilla ( ) : double |
public AddPoint ( ContinuousXYPoint point ) : void | ||
point | ContinuousXYPoint | |
return | void |
public AddPoints ( IEnumerable |
||
points | IEnumerable |
|
return | void |
protected ComputeResidual ( ContinuousXYPoint point ) : double | ||
point | ContinuousXYPoint | /// The point. /// |
return | double |
protected CooksDistance ( ContinuousXYPoint point, double ssh, double meanX, int pointsCount, double &leverage ) : double | ||
point | ContinuousXYPoint | /// The point. /// |
ssh | double | /// The ssh. /// |
meanX | double | /// The mean X. /// |
pointsCount | int | /// The points count. /// |
leverage | double | |
return | double |
protected DiagnosePoints ( double>.Func |
||
weightFunc | double>.Func | |
return | void |
public DiagnoseRegression ( double>.Func |
||
weightFunc | double>.Func | |
return | void |
public FitLine ( IEnumerable |
||
initialPoints | IEnumerable |
|
return | System |
protected abstract LeastSquaresFitLinear ( IEnumerable |
||
xyPoints | IEnumerable |
/// The xy points. /// |
gain | double | |
offset | double | |
return | void |
protected LeastSquaresFitdLinear ( IEnumerable |
||
xyPoints | IEnumerable |
|
return | void |
public ModelPredictX2Y ( double x ) : double | ||
x | double | /// The X. /// |
return | double |
public PerformRegression ( IEnumerable |
||
xyPoints | IEnumerable |
/// The xy points. /// |
return | void |
public RemoveOutlierWithHighestCookDistance ( int minFitPoints ) : int | ||
minFitPoints | int | |
return | int |
public RemoveOutliersAboveThreshold ( double CooksDThreshold, int minFitPoints ) : int | ||
CooksDThreshold | double | /// The cooks d threshold. /// |
minFitPoints | int | /// The min fit points. /// |
return | int |
public RemovePoint ( ContinuousXYPoint point ) : void | ||
point | ContinuousXYPoint | |
return | void |
public ResetPoints ( IEnumerable |
||
points | IEnumerable |
|
return | void |