|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.stats.timeseries.linear.univariate.stationaryprocess.MADecomposition
public class MADecomposition
This class decomposes a time series into the trend, seasonal and the stationary random components using the Moving Average Estimation with symmetric window.
That is,
Xt = mt + st + Yt
We have
The R equivalent function is decompose.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final TimeSeries trend
public final TimeSeries seasonal
public final TimeSeries random
| Constructor Detail |
|---|
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 1
public MADecomposition(TimeSeries Xt,
int period)
Xt - a time seriesperiod - the period of the time series; if aperiodic, use 0
public 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
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||