Skip to content

Type Alias: SeriesValueSource

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Temporal / SeriesValueSource

Type Alias: SeriesValueSource

SeriesValueSource = { kind: "feature"; name: string; } | { kind: "count"; }

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

Where a term’s value comes from.

Remarks

A union discriminated by kind. feature projects a numeric feature (Integer/BigInteger/Real are coerced to f64); count makes every qualifying term contribute 1.0, giving a windowed COUNT or rate-of-occurrence.

Example

const value: SeriesValueSource = { kind: 'feature', name: 'temperature' };
const events: SeriesValueSource = { kind: 'count' };