object

baseline_forecasting

Naive, seasonal naive, mean, and drift time series forecasters with missing observations and immutable online updates.

Availability:
logtalk_load(baseline_forecasting(loader))
Author: Paulo Moura
Version: 1:0:0
Date: 2026-10-14
Compilation flags:
static, context_switching_calls
Imports:
Uses:
Remarks:
(none)

Public predicates

update/3

Returns a new forecaster after appending a numeric or missing (unbound) observation. The original forecaster is not modified.

Compilation flags:
static
Template:
update(Forecaster,Observation,UpdatedForecaster)
Mode and number of proofs:
update(+compound,@term,-compound) - one_or_error
Exceptions:
Forecaster is a variable:
instantiation_error
Forecaster is not a valid baseline forecaster:
domain_error(forecaster,Forecaster)
Observation is neither a variable nor a number:
type_error(number,Observation)
Updating the numeric sum raises an arithmetic evaluation error:
evaluation_error(Error)

Protected predicates

(no local declarations; see entity ancestors if any)

Private predicates

(no local declarations; see entity ancestors if any)

Operators

(none)