protocol
time_series_dataset_protocol
Protocol for datasets used with time series forecasting algorithms.
Availability:
logtalk_load(time_series_protocols(loader))Author: Paulo Moura
Version: 1:0:0
Date: 2026-09-27
Compilation flags:
staticDependencies:
(none)
Remarks:
(none)
Inherited public predicates:
(none)
Public predicates
observation/2
Enumerates by backtracking the time-ordered observations. Index is the 1-based position of the observation in the series and Value is its numeric value.
Compilation flags:
staticTemplate:
observation(Index,Value)Mode and number of proofs:
observation(-integer,-number) - zero_or_moreseries_length/1
Returns the number of observations in the series. The declared length must match the number of observations enumerated by observation/2.
Compilation flags:
staticTemplate:
series_length(Length)Mode and number of proofs:
series_length(-positive_integer) - onefrequency/1
Returns the positive number of observations per seasonal cycle (e.g. 12 for monthly data with yearly seasonality). Fails when the series has no declared seasonal period.
Compilation flags:
staticTemplate:
frequency(Frequency)Mode and number of proofs:
frequency(-positive_integer) - zero_or_oneProtected predicates
(none)
Private predicates
(none)
Operators
(none)