com.github.servicenow.ds.stats.stl
Class LoessSmoother
- java.lang.Object
-
- com.github.servicenow.ds.stats.stl.LoessSmoother
-
public class LoessSmoother extends java.lang.ObjectLoessSmoother uses LOESS interpolation to compute a smoothed data set from a regularly-spaced set of input data. If a jump is specified, then LOESS interpolation is only done on every jump points and linear interpolation is done to fill in the gaps.Author: Jim Crotinger, ported from the original RATFOR source from netlib
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classLoessSmoother.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description com.github.servicenow.ds.stats.stl.LoessInterpolatorgetInterpolator()Accessor to retrieve the underlying interpolator.double[]smooth()Calculate the LOESS smoothed data for each original data point.
-
-
-
Method Detail
-
getInterpolator
public com.github.servicenow.ds.stats.stl.LoessInterpolator getInterpolator()
Accessor to retrieve the underlying interpolator.- Returns:
- LoessInterpolator the underlying interpolators
-
smooth
public double[] smooth()
Calculate the LOESS smoothed data for each original data point.- Returns:
- double[] array containing the results
-
-
DataMelt 3.0 © DataMelt by jWork.ORG