C# Class ImsInformed.Statistics.IRLSFitline

Inheritance: FitLine
Datei anzeigen Open project: PNNL-Comp-Mass-Spec/IMS-Informed-Library

Public Methods

Method Description
IRLSFitline ( IEnumerable fitPoints, int iterations ) : System
IRLSFitline ( int iterations ) : System
PerformRegression ( ) : void
PerformRegression ( IEnumerable xyPoints ) : void

Replace the normal least square fit, using iteratively weighted least square fit.

Protected Methods

Method Description
CalculateRSquared ( ) : double
LeastSquaresFitLinear ( IEnumerable xyPoints, double &gain, double &offset ) : void

Private Methods

Method Description
BiSquareWeight ( FitlinePoint point ) : double
CalculateMAD ( IEnumerable inputs ) : double
CalculateMedian ( IEnumerable inputs ) : double

Method Details

CalculateRSquared() protected method

protected CalculateRSquared ( ) : double
return double

IRLSFitline() public method

public IRLSFitline ( IEnumerable fitPoints, int iterations ) : System
fitPoints IEnumerable
iterations int
return System

IRLSFitline() public method

public IRLSFitline ( int iterations ) : System
iterations int
return System

LeastSquaresFitLinear() protected method

protected LeastSquaresFitLinear ( IEnumerable xyPoints, double &gain, double &offset ) : void
xyPoints IEnumerable
gain double
offset double
return void

PerformRegression() public method

A delegate callback throws an exception.
public PerformRegression ( ) : void
return void

PerformRegression() public method

Replace the normal least square fit, using iteratively weighted least square fit.
A delegate callback throws an exception.
public PerformRegression ( IEnumerable xyPoints ) : void
xyPoints IEnumerable
return void