public class StlDecomposition extends Object
Robert B. Cleveland et al., "STL: A Seasonal-Trend Decomposition Procedure based on Loess," in Journal of Official Statistics Vol. 6 No. 1, 1990, pp. 3-73
| Constructor and Description |
|---|
StlDecomposition(int numberOfObservations)
Constructs an STL function that can de-trend data.
|
| Modifier and Type | Method and Description |
|---|---|
StlResult |
decompose(double[] times,
double[] series)
Computes the STL decomposition of a times series.
|
StlResult |
decompose(List<Number> times,
List<Number> series)
A convenience method to use objects.
|
StlConfig |
getConfig() |
static void |
main(String[] args)
Runs STL on a CSV of time,measure.
|
public StlDecomposition(int numberOfObservations)
n.b. The Java Loess implementation only does linear local polynomial regression, but R supports linear (degree=1), quadratic (degree=2), and a strange degree=0 option.
Also, the Java Loess implementation accepts "bandwidth", the fraction of source points closest to the current point, as opposed to integral values.
numberOfObservations - The number of observations in a season.public StlConfig getConfig()
public StlResult decompose(List<Number> times, List<Number> series)
times - A sequence of time values.series - A dependent variable on times.public StlResult decompose(double[] times, double[] series)
times - A sequence of time values.series - A dependent variable on times.Copyright © 2016. All rights reserved.