public final class StlConfig extends Object
StlDecomposition.| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_INNER_LOOP_PASSES
Empirically determined number resulted in good residuals.
|
protected static int |
DEFAULT_LOESS_ROBUSTNESS_ITERATIONS
Number of robustness iterations for each invocation of Loess.
|
protected static int |
DEFAULT_ROBUSTNESS_ITERATIONS
Same as R's robust = FALSE.
|
protected static double |
DEFAULT_SEASONAL_BANDWIDTH
Consider 75% neighboring points smoothing seasonal in inner loop.
|
protected static double |
DEFAULT_TREND_BANDWIDTH
Consider 75% neighboring points smoothing trend in inner loop.
|
| Modifier | Constructor and Description |
|---|---|
protected |
StlConfig(int numberOfObservations)
A configuration for
StlDecomposition. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
check(int numberOfDataPoints)
Checks consistency of configuration parameters.
|
int |
getLoessRobustnessIterations() |
int |
getNumberOfInnerLoopPasses() |
int |
getNumberOfObservations() |
int |
getNumberOfRobustnessIterations() |
double |
getSeasonalComponentBandwidth() |
double |
getTrendComponentBandwidth() |
boolean |
isPeriodic() |
void |
setLoessRobustnessIterations(int loessRobustnessIterations) |
void |
setNumberOfInnerLoopPasses(int numberOfInnerLoopPasses) |
void |
setNumberOfRobustnessIterations(int numberOfRobustnessIterations) |
void |
setPeriodic(boolean periodic) |
void |
setSeasonalComponentBandwidth(double seasonalComponentBandwidth) |
void |
setTrendComponentBandwidth(double trendComponentBandwidth) |
protected static final int DEFAULT_INNER_LOOP_PASSES
protected static final int DEFAULT_ROBUSTNESS_ITERATIONS
protected static final double DEFAULT_TREND_BANDWIDTH
protected static final double DEFAULT_SEASONAL_BANDWIDTH
protected static final int DEFAULT_LOESS_ROBUSTNESS_ITERATIONS
protected StlConfig(int numberOfObservations)
StlDecomposition.numberOfObservations - The number of observations in each period of the time seriespublic int getNumberOfObservations()
public int getNumberOfInnerLoopPasses()
public void setNumberOfInnerLoopPasses(int numberOfInnerLoopPasses)
numberOfInnerLoopPasses - The number of inner loop passes.public int getNumberOfRobustnessIterations()
public void setNumberOfRobustnessIterations(int numberOfRobustnessIterations)
numberOfRobustnessIterations - The number of robustness iterationspublic double getTrendComponentBandwidth()
public void setTrendComponentBandwidth(double trendComponentBandwidth)
trendComponentBandwidth - The % of points considered by Loess for trend smoothing.public double getSeasonalComponentBandwidth()
public void setSeasonalComponentBandwidth(double seasonalComponentBandwidth)
seasonalComponentBandwidth - The % of points considered by Loess for seasonal smoothing.public boolean isPeriodic()
public void setPeriodic(boolean periodic)
periodic - Whether this time series is known to be periodic a priori.public int getLoessRobustnessIterations()
public void setLoessRobustnessIterations(int loessRobustnessIterations)
loessRobustnessIterations - The number of robustness iterations used by LoessInterpolator.protected void check(int numberOfDataPoints)
Must be called each time this configuration is used.
There must be at least two observations, and at least two periods in the data.
numberOfDataPoints - The number of data points in the target series.Copyright © 2016. All rights reserved.