Interface: TemporalSeriesPoint
@kortexya/reasoninglayer / TemporalSeriesPoint
Interface: TemporalSeriesPoint
Section titled “Interface: TemporalSeriesPoint”Defined in: src/types/temporal.ts:425
One emitted aggregate of a temporal series.
Remarks
Section titled “Remarks”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).
Example
Section titled “Example”for (const point of series.points) { console.log(new Date(point.bucketStart), point.aggregate, point.count);}Properties
Section titled “Properties”aggregate
Section titled “aggregate”aggregate:
number
Defined in: src/types/temporal.ts:436
Primary aggregate.
aggregateSecondary?
Section titled “aggregateSecondary?”
optionalaggregateSecondary?:number
Defined in: src/types/temporal.ts:439
Secondary aggregate, for the operators that produce two.
bucketEnd?
Section titled “bucketEnd?”
optionalbucketEnd?:number
Defined in: src/types/temporal.ts:430
Bucket end, exclusive (epoch-milliseconds). Absent for non-windowed points.
bucketStart
Section titled “bucketStart”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.