Skip to content

Interface: TemporalSeriesSpec

@kortexya/reasoninglayer


@kortexya/reasoninglayer / TemporalSeriesSpec

Defined in: src/types/temporal.ts:357

How to turn the selected terms into a series.

Pairs the extraction sources (time, value) with the aggregation (operator) and bucketing (window). Incompatible operator/window combinations (e.g. ewma with a tumbling window) are rejected with HTTP 400.

const spec: TemporalSeriesSpec = {
time: { kind: 'date_time_feature', name: 'observed_at' },
value: { kind: 'feature', name: 'temperature' },
operator: { op: 'window_mean' },
window: { windowing: 'tumbling', sizeMs: 3_600_000 },
onMissing: 'skip',
};

optional onMissing?: SeriesMissingPolicy

Defined in: src/types/temporal.ts:371

What to do when a term lacks the time/value feature. Defaults to skip.


operator: SeriesOperator

Defined in: src/types/temporal.ts:365

Aggregation operator.


time: SeriesTimeSource

Defined in: src/types/temporal.ts:359

Event-time source.


value: SeriesValueSource

Defined in: src/types/temporal.ts:362

Value source.


window: SeriesWindowSpec

Defined in: src/types/temporal.ts:368

Time bucketing.