public class MADecomposition extends Object
X_{t} = m_{t} + s_{t} + Y_{t}We have
decompose
.Constructor and Description 

MADecomposition(double[] xt,
double[] MAFilter,
int period)
Decompose a time series into the trend, seasonal and stationary random components using the
Moving Average Estimation method.

MADecomposition(double[] xt,
int period)
Decompose a periodic time series into the seasonal and stationary random components using no
MA filter.

MADecomposition(double[] xt,
int MAOrder,
int period)
Decompose a time series into the trend, seasonal and stationary random components using the
default filter.

Modifier and Type  Method and Description 

double[] 
getRandom()
Get the estimated seasonal effect of the time series.

double[] 
getSeasonal()
Get the stationary random component of the time series after the trend and seasonal
components are removed.

double[] 
getTrend()
Get the estimated trend of the time series.

public MADecomposition(double[] 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(double[] 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 0public MADecomposition(double[] xt, int period)
xt
 a time seriesperiod
 the period of the time series; if aperiodic, use 0public double[] getTrend()
public double[] getSeasonal()
public double[] getRandom()
Copyright © 20102014 Numerical Method Incorporation Limited. All Rights Reserved.