Skip to content

Interface: TemporalSeriesPoint

@kortexya/reasoninglayer


@kortexya/reasoninglayer / TemporalSeriesPoint

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

One emitted aggregate of a temporal series.

aggregate is the operator’s primary output (mean / sum / count / variance / min / rate / running average). aggregateSecondary carries the second output for the operators that have one: variance → standard deviation, window_min_max → max, window_rate → span in seconds.

bucketEnd is exclusive, and absent for non-windowed points (EWMA).

for (const point of series.points) {
console.log(new Date(point.bucketStart), point.aggregate, point.count);
}

aggregate: number

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

Primary aggregate.


optional aggregateSecondary?: number

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

Secondary aggregate, for the operators that produce two.


optional bucketEnd?: number

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

Bucket end, exclusive (epoch-milliseconds). Absent for non-windowed points.


bucketStart: number

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

Bucket start (epoch-milliseconds), or the point timestamp for EWMA.


count: number

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

Observations contributing to this point.