Exponential Smoothing Model Class
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public class ExponentialSmoothingModel : TimeSeriesModel<double>
- Inheritance
- Object → Model → TimeSeriesModel<Double> → ExponentialSmoothingModel
Remarks
Use the ExponentialSmoothingModel class to remove noise or forecast data using exponential smoothing. A variety of methods is available, including single and double smoothing.
Single exponential smoothing is equivalent to computing an exponential moving average. The smoothing parameter is determined automatically, by minimizing the squared difference between the actual and the forecast values. Double exponential smoothing introduces a linear trend, and so has two parameters.
Exponential smoothing models are constructed from a Vector<T> that represents the time series data. The Method property determines the type of smoothing. It is of type ExponentialSmoothingMethod. For double exponential smoothing models, the TrendEstimator property, of type ExponentialSmoothingTrendEstimator, determines how the initial value for the trend is determined.
The Fit() method finds the parameter values that minimize the squared error of the forecast. The Forecast(Int32) method can then be used to get the one step ahead forecast, any single future forecast, or a series of forecasts as a Vector<T>.
Constructors
Exponential | Constructs a new ExponentialSmoothingModel object. |
Properties
Base |
Gets an index containing the keys of the columns
that are required inputs to the model.
(Inherited from Model) |
Computed |
Gets whether the model has been computed.
(Inherited from Model) Obsolete. |
Covariance |
Gets the covariance matrix of the model parameters.
(Inherited from TimeSeriesModel<T>) |
Data |
Gets an object that contains all the data used as input to the model.
(Inherited from Model) |
Degrees |
Gets the total degrees of freedom of the data.
(Inherited from TimeSeriesModel<T>) |
Fitted |
Gets whether the model has been computed.
(Inherited from Model) |
Input |
Gets the schema for the features used for fitting the model.
(Inherited from Model) |
Log |
Gets the log-likelihood that the model generated the data.
(Inherited from TimeSeriesModel<T>) |
Max |
Gets or sets the maximum degree of parallelism enabled by this instance.
(Inherited from Model) |
Method | Gets or sets the smoothing method. |
Model |
Gets the collection of variables used in the model.
(Inherited from Model) |
Number |
Gets the number of observations the model is based on.
(Inherited from Model) |
Parallel |
Gets or sets an object that specifies how the calculation of the model should be parallelized.
(Inherited from Model) |
Parameters |
Gets the collection of parameters associated with this model.
(Inherited from TimeSeriesModel<T>) |
Parameter |
Gets the collection of parameters associated with this model.
(Inherited from TimeSeriesModel<T>) |
Predictions |
Gets a vector containing the model's predicted values for the dependent variable.
(Inherited from TimeSeriesModel<T>) |
Residuals |
Gets a vector containing the residuals of the model.
(Inherited from TimeSeriesModel<T>) |
Residual |
Gets the sum of squares of the residuals of the model.
(Inherited from TimeSeriesModel<T>) |
Standard |
Gets the standard error of the regression.
(Inherited from TimeSeriesModel<T>) |
Status |
Gets the status of the model, which determines which information is available.
(Inherited from Model) |
Supports |
Indicates whether the model supports case weights.
(Inherited from Model) |
Time |
Gets the time series that is being modeled.
(Inherited from TimeSeriesModel<T>) |
Trend | Gets or sets how the trend is estimated. |
Weights |
Gets or sets the actual weights.
(Inherited from Model) |
Methods
Compute() |
Computes the model.
(Inherited from Model) Obsolete. |
Compute( |
Computes the model.
(Inherited from Model) Obsolete. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
Fit() |
Fits the model to the data.
(Inherited from Model) |
Fit( |
Fits the model to the data.
(Inherited from Model) |
Fit |
Computes the model.
(Overrides Model.FitCore(ModelInput, ParallelOptions)) |
Forecast() |
Returns the one step ahead forecast.
(Inherited from TimeSeriesModel<T>) |
Forecast( |
Returns the forecast for the specified number of steps ahead.
(Overrides TimeSeriesModel<T>.Forecast(Int32)) |
Get |
Returns the Akaike information criterion (AIC) value for the model.
(Inherited from TimeSeriesModel<T>) |
Get |
Returns the Bayesian information criterion (BIC) value for the model.
(Inherited from TimeSeriesModel<T>) |
Get | Serves as the default hash function. (Inherited from Object) |
Get | Gets the Type of the current instance. (Inherited from Object) |
Memberwise | Creates a shallow copy of the current Object. (Inherited from Object) |
Reset |
Clears all fitted model parameters.
(Inherited from Model) Obsolete. |
Reset |
Clears all fitted model parameters.
(Inherited from Model) |
Set |
Uses the specified data frame as the source for all input variables.
(Inherited from Model) |
Summarize() |
Returns a string containing a human-readable summary of the object using default options.
(Inherited from Model) |
Summarize( |
Returns a string containing a human-readable summary of the object using the specified options.
(Overrides Model.Summarize(SummaryOptions)) |
ToString | Returns a string that represents the current object. (Inherited from Model) |