C# Class CanvasClean.LoessInterpolator

Mostrar archivo Open project: Illumina/canvas Class Usage Examples

Public Properties

Property Type Description
DEFAULT_BANDWIDTH double
DEFAULT_ROBUSTNESS_ITERS int

Public Methods

Method Description
LoessInterpolator ( ) : System
LoessInterpolator ( double bandwidth, int robustnessIters ) : System
Train ( double xvals, double yvals, double xStep, bool computeFitted = true ) : LoessModel

Train a LOESS model

Private Methods

Method Description
checkAllFiniteReal ( double values, bool isAbscissae ) : void
checkIncreasing ( double xval ) : void

Check that elements of the abscissae array are in an increasing order. Throws MathException if the abscissae array is not in an increasing order.

computeCoefficients ( double x, double xval, double yval, double robustnessWeights, int bandwidthInterval ) : double[]
computeIntervals ( double xvals, double xStep, int bandwidthInPoints ) : List
predict ( double x, double coefficients ) : double
train ( double xvals, double yvals, double xStep, int ascendingOrder, bool computeFitted = true ) : LoessModel

Train a LOESS model

tricube ( double x ) : double
updateBandwidthInterval ( double x, double xval, int bandwidthInterval ) : int[]

Given an Index interval into xval that embraces a certain number of points closest to a value less than x, update the interval so that it embraces the same number of points closest to x.

Method Details

LoessInterpolator() public method

public LoessInterpolator ( ) : System
return System

LoessInterpolator() public method

public LoessInterpolator ( double bandwidth, int robustnessIters ) : System
bandwidth double
robustnessIters int
return System

Train() public method

Train a LOESS model
public Train ( double xvals, double yvals, double xStep, bool computeFitted = true ) : LoessModel
xvals double x values
yvals double y values
xStep double x-value step size
computeFitted bool to compute the fitted y values? Always true when robustnessIters > 0
return LoessModel

Property Details

DEFAULT_BANDWIDTH public_oe static_oe property

public static double DEFAULT_BANDWIDTH
return double

DEFAULT_ROBUSTNESS_ITERS public_oe static_oe property

public static int DEFAULT_ROBUSTNESS_ITERS
return int