StatBean Name: TimeSeriesSmoothing

Purpose: Applies various smoothers to a time series.

DataSource: any.

Read/Write Properties
NameTypeDescriptionPossible ValuesDefault Value
replaceMissingValuesbooleanReplace any missing values within time time series.true,falsetrue
seasonalLengthintThe number of time periods comprising a season.1+1
smoother1ParameterdoubleParameter for the EWMA smoother.0-1, exclusive.0.2
smoother2ParameterdoubleParameter for the EWMA smoother.0-1, exclusive.0.2
smoother1SpanintNumber of terms in the MA smoother.2+9
smoother2SpanintNumber of terms in the MA smoother.2+9
smoother1TypeStringFirst type of smoother to apply."None","MA","Spencers MA15",
"Spencers MA21",
"Hendersons MA","EWMA",
"3RSS","3RSSH","5RSS",
"5RSSH","3RSR"
"None"
smoother2TypeStringFirst type of smoother to apply."None","MA","Spencers MA15",
"Spencers MA21",
"Hendersons MA","EWMA",
"3RSS","3RSSH","5RSS",
"5RSSH","3RSR"
"None"
timeSeriesVariableNameStringThe name of the column with data values to be plotted.Any string.""

Other Public Methods
NameDescriptionArgumentsReturn Value
int getNumberOfMissingValuesReplaced()Returns the number of missing values replaced with estimates.None.Number replaced.
double getSmoothedData(int row)Returns the smoothed values.Row index (0 origin).Smoothed value.

Output Variables
NameDescription
RoughOriginal data minus the smooth.
Smoothed DataSmoothed data values.


Code Sample
- see TimeSeriesPlot.