object
exponential_smoothing
Simple, Holt linear-trend, and additive or multiplicative Holt-Winters exponential smoothing forecaster.
logtalk_load(exponential_smoothing(loader))static, context_switching_callsPublic predicates
update/3
Returns a new forecaster after applying one numeric observation or, under skip_update, an unbound variable representing a missing observation. Does not bind missing observations.
staticupdate(Forecaster,Observation,UpdatedForecaster)update(+compound,@term,-compound) - one_or_errorForecaster is a variable:instantiation_errorForecaster is neither a variable nor a valid forecaster:domain_error(forecaster,Forecaster)Observation is a variable under the error missing policy:instantiation_errorObservation is neither a variable nor a number:type_error(number,Observation)Observation is a number but is not finite:domain_error(finite_number,Observation)Observation is incompatible with the learned transformation:domain_error(positive_transformation_series,Observation)Observation is incompatible with a multiplicative model:domain_error(positive_multiplicative_series,Observation)domain_error(positive_multiplicative_level,Level)evaluation_error(Error)forecast_interval/5
Computes residual-bootstrap prediction interval bounds for the next Horizon forecasts of a learned forecaster. Requires a forecaster learned with the retain_residuals(true) learning option. For each of samples/1 simulated paths and each horizon step, independently resamples, with replacement, one retained one-step training residual, adds it to the deterministic point forecast for that step (thus preserving the seasonal phase of the point forecast), and inverse-transforms the simulated value using the same transformation and bias adjustment as forecast/3. The reported bounds are the empirical (1-confidence)/2 and (1+confidence)/2 quantiles of the simulated values for each step, widened when necessary so that the point forecast always lies within its bounds. A zero horizon returns two empty lists and does not require retained residuals.
staticforecast_interval(Forecaster,Horizon,Lower,Upper,Options)forecast_interval(+compound,+non_negative_integer,-list(number),-list(number),+list(compound)) - one_or_errorForecaster is a variable:instantiation_errorForecaster is neither a variable nor a valid forecaster:domain_error(forecaster,Forecaster)Horizon is a variable:instantiation_errorHorizon is neither a variable nor an integer:type_error(integer,Horizon)Horizon is an integer but is negative:domain_error(non_negative_integer,Horizon)Options is a variable or a partial list:instantiation_errorOptions is neither a variable nor a list:type_error(list,Options)instantiation_errortype_error(compound,Option)domain_error(option,Option)Horizon is positive and the forecaster was learned without retain_residuals(true):domain_error(retained_residuals,Forecaster)Protected predicates
(no local declarations; see entity ancestors if any)
Private predicates
(no local declarations; see entity ancestors if any)
Operators
(none)