public class MADecomposition
extends java.lang.Object
implements java.io.Serializable
That is,
Xt = mt + st + Yt
We have
The R equivalent function is decompose.
| Modifier and Type | Field and Description |
|---|---|
TimeSeries |
random
the stationary random component of the time series after the trend and seasonal components are removed
|
TimeSeries |
seasonal
the estimated seasonal effect of the time series
|
TimeSeries |
trend
the estimated trend of the time series
|
| Constructor and Description |
|---|
MADecomposition(TimeSeries Xt,
double[] MAFilter,
int period)
Decompose a time series into the trend, seasonal and the stationary random components using the Moving Average Estimation.
|
MADecomposition(TimeSeries Xt,
int period)
Decompose a periodic time series into the seasonal and stationary random components using no MA filter.
|
MADecomposition(TimeSeries Xt,
int MAOrder,
int period)
Decompose a time series into the trend, seasonal and the stationary random components using the default filter.
|
public final TimeSeries trend
public final TimeSeries seasonal
public final TimeSeries random
public MADecomposition(TimeSeries Xt, double[] MAFilter, int period)
Xt - a time seriesMAFilter - the moving average filter to smooth the time seriesperiod - the period of the time series; if aperiodic, use 1public MADecomposition(TimeSeries Xt, int period)
Xt - a time seriesperiod - the period of the time series; if aperiodic, use 0public MADecomposition(TimeSeries Xt, int MAOrder, int period)
Xt - a time seriesMAOrder - the length of the MA filter (automatically increased by 1 for even MAOrder)period - the period of the time series; if aperiodic, use 0