C# 클래스 ImsInformed.Statistics.FitLine

The fit FitLine.
파일 보기 프로젝트 열기: PNNL-Comp-Mass-Spec/IMS-Informed-Library 1 사용 예제들

공개 메소드들

메소드 설명
AddPoint ( ContinuousXYPoint point ) : void
AddPoints ( IEnumerable points ) : void
DiagnoseRegression ( double>.Func weightFunc = null ) : void
FitLine ( ) : System

Initializes a new instance of the FitLine class.

FitLine ( IEnumerable initialPoints ) : System
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 xyPoints ) : void

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 points ) : void

보호된 메소드들

메소드 설명
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 weightFunc ) : void

Calculate Cook's distance for all points

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

Computes fit FitLine for potential voltage group and writes

LeastSquaresFitdLinear ( IEnumerable xyPoints ) : void

wrapper for updating gain and offset using LeastSquaresFitLinear

비공개 메소드들

메소드 설명
CalculatedRSquaredVanilla ( ) : double

메소드 상세

AddPoint() 공개 메소드

public AddPoint ( ContinuousXYPoint point ) : void
point ContinuousXYPoint
리턴 void

AddPoints() 공개 메소드

public AddPoints ( IEnumerable points ) : void
points IEnumerable
리턴 void

CalculateMSE() 보호된 메소드

protected CalculateMSE ( ) : double
리턴 double

CalculateRSquared() 보호된 메소드

Calculate R-square(Coefficient of determination)
protected CalculateRSquared ( ) : double
리턴 double

ComputeResidual() 보호된 메소드

Compute the residual of a fit point.
///
protected ComputeResidual ( ContinuousXYPoint point ) : double
point ContinuousXYPoint /// The point. ///
리턴 double

CooksDistance() 보호된 메소드

The cooks distance.
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
리턴 double

DiagnosePoints() 보호된 메소드

Calculate Cook's distance for all points
A delegate callback throws an exception.
protected DiagnosePoints ( double>.Func weightFunc ) : void
weightFunc double>.Func
리턴 void

DiagnoseRegression() 공개 메소드

A delegate callback throws an exception.
public DiagnoseRegression ( double>.Func weightFunc = null ) : void
weightFunc double>.Func
리턴 void

FitLine() 공개 메소드

Initializes a new instance of the FitLine class.
public FitLine ( ) : System
리턴 System

FitLine() 공개 메소드

public FitLine ( IEnumerable initialPoints ) : System
initialPoints IEnumerable
리턴 System

LeastSquaresFitLinear() 보호된 추상적인 메소드

Computes fit FitLine for potential voltage group and writes
protected abstract LeastSquaresFitLinear ( IEnumerable xyPoints, double &gain, double &offset ) : void
xyPoints IEnumerable /// The xy points. ///
gain double
offset double
리턴 void

LeastSquaresFitdLinear() 보호된 메소드

wrapper for updating gain and offset using LeastSquaresFitLinear
protected LeastSquaresFitdLinear ( IEnumerable xyPoints ) : void
xyPoints IEnumerable
리턴 void

ModelPredictX2Y() 공개 메소드

Return the predicted Y at given X
public ModelPredictX2Y ( double x ) : double
x double /// The X. ///
리턴 double

ModelPredictY2X() 공개 메소드

Return the predicted Y at given X
Cannot predict value with model, please run linear regression first.
public ModelPredictY2X ( double y ) : double
y double
리턴 double

PerformRegression() 공개 메소드

Using current fits points stored in the fitline to initiate regression
public PerformRegression ( ) : void
리턴 void

PerformRegression() 공개 메소드

Refit a group of points to the fit line.
public PerformRegression ( IEnumerable xyPoints ) : void
xyPoints IEnumerable /// The xy points. ///
리턴 void

RemoveOutlierWithHighestCookDistance() 공개 메소드

The remove outlier with highest cook distance.
public RemoveOutlierWithHighestCookDistance ( int minFitPoints ) : int
minFitPoints int
리턴 int

RemoveOutliersAboveThreshold() 공개 메소드

The remove outliers above threshold.
///
public RemoveOutliersAboveThreshold ( double CooksDThreshold, int minFitPoints ) : int
CooksDThreshold double /// The cooks d threshold. ///
minFitPoints int /// The min fit points. ///
리턴 int

RemovePoint() 공개 메소드

public RemovePoint ( ContinuousXYPoint point ) : void
point ContinuousXYPoint
리턴 void

ResetPoints() 공개 메소드

public ResetPoints ( IEnumerable points ) : void
points IEnumerable
리턴 void