kumulant

asDiscrete

Adapt a series spec into a discrete spec - the discrete sees value.toLong() per update.

asSeries

Adapt a discrete spec into a series spec - the series sees value.toDouble() per update.

atIndex

Adapt a series spec into a vector spec by consuming the index-th coordinate of each vector.

atIndices

fun <R : Result> PairedStatSpec<R>.atIndices(indexX: Int, indexY: Int): VectorStatSpec<R>(source)

Adapt a paired spec into a vector spec by consuming the indexX / indexY coordinates.

atX

Adapt a series spec into a paired spec by consuming the x component of each pair.

atY

Adapt a series spec into a paired spec by consuming the y component of each pair.

band

Wrap this series spec to expose a [lower, upper] band of width k * scale around center.

derivative

Wrap this series spec to forward the per-second time derivative of the value stream.

diff

Wrap this series spec to forward the k-th difference value - value[t - k].

filter

Wrap this series spec so updates are forwarded only when pred evaluates true.


Wrap this discrete spec so updates are forwarded only when pred evaluates true.


Wrap this paired spec so updates are forwarded only when pred evaluates true on (x, y).


Wrap this vector spec so updates are forwarded only when pred evaluates true on the full vector.


Wrap this regression spec so updates are forwarded only when pred evaluates true.

foldPaired

Lift this series spec to a paired spec, reducing every (x, y) to a scalar via expr.

foldRegression

Lift this series spec into the regression modality. project reduces each (x = V, y = Y) update to a scalar that the inner series stat absorbs. Use Y for the marginal-y view.

foldVector

Lift this series spec to a vector spec, reducing every vector to a scalar via expr.


Lift this paired spec to a vector spec, reducing every vector to a pair (xExpr, yExpr) of scalars via xExpr and yExpr.

hysteresis

Wrap this series spec to debounce its input into a 0.0/1.0 stream via two-threshold hysteresis.

lag

Wrap this series spec to forward the value seen k updates ago.

minMaxScaleFeatures

fun <R : Result> VectorStatSpec<R>.minMaxScaleFeatures(dimensions: Int, targetLow: Double = 0.0, targetHigh: Double = 1.0): VectorStatSpec<R>(source)

Element-wise min-max scale a vector spec against a hidden per-coordinate Range primary.


fun <R : Result> RegressionStatSpec<R>.minMaxScaleFeatures(targetLow: Double = 0.0, targetHigh: Double = 1.0): RegressionStatSpec<R>(source)

Element-wise min-max scale a regression spec's feature vector.

minMaxScaler

fun <R : Result> PairedStatSpec<R>.minMaxScaler(targetLow: Double = 0.0, targetHigh: Double = 1.0): PairedStatSpec<R>(source)

Min-max scale both axes of a paired spec against per-axis Range primaries.


fun <R : Result> SeriesStatSpec<R>.minMaxScaler(targetLow: Double = 0.0, targetHigh: Double = 1.0): SeriesStatSpec<R>(source)

Min-max scale the input against a hidden Range primary into [targetLow, targetHigh], then forward the mapped value to this spec. Defaults map to [0, 1]; pass targetLow = -1.0, targetHigh = 1.0 for a [-1, 1] mapping. Emits targetLow while the running range is still degenerate.

resampleByTime

fun <R : Result> SeriesStatSpec<R>.resampleByTime(bucketMillis: Long, aggregator: ResampleAggregator = ResampleAggregator.Mean): SeriesStatSpec<R>(source)

Wrap this series spec to forward one per-bucket summary using aggregator.

sample

Wrap this series spec to keep each update with probability rate; seed feeds the PRNG.


Wrap this paired spec to keep each update with probability rate; seed feeds the PRNG.


Wrap this vector spec to keep each update with probability rate; seed feeds the PRNG.


Wrap this discrete spec to keep each update with probability rate; seed feeds the PRNG.


Wrap this regression spec to keep each update with probability rate; seed feeds the PRNG.

standardScaleFeatures

Element-wise standardise a vector spec against a hidden per-coordinate Variance primary.


Element-wise standardise a regression spec's feature vector.

standardScaler

Z-score both axes of a paired spec against per-axis Variance primaries.


Z-score the input against a hidden Variance primary, then forward the standardized value to this spec. Emits 0 while the running variance is still zero.

throttle

Wrap this series spec so it only sees one in every every updates.


Wrap this paired spec so it only sees one in every every updates.


Wrap this vector spec so it only sees one in every every updates.


Wrap this discrete spec so it only sees one in every every updates.


Wrap this regression spec so it only sees one in every every updates.

transform

Wrap this series spec to apply expr to every update before the inner stat sees it.


Wrap this discrete spec to apply expr to every update before the inner stat sees it.

transformElement

Wrap this vector spec to apply expr to every element of each incoming vector before update.

transformPair

Wrap this paired spec so each (x, y) is remapped via xExpr/yExpr before the inner stat sees it.

transformVector

Wrap this vector spec so each incoming vector is remapped through expr before update.

transformX

Map only the x coordinate; y stays as-is.


Wrap this regression spec so x is remapped by expr before the inner stat sees it.

transformY

Map only the y coordinate; x stays as-is.


Wrap this regression spec so y is remapped by expr before the inner stat sees it.

vectorized

fun <R : Result> SeriesStatSpec<R>.vectorized(dimensions: Int, skipZeros: Boolean = false): VectorStatSpec<ResultList<R>>(source)

Lift a series spec to a vector spec by replicating it across every coordinate of an N-dim input.

weightBy

Wrap this series spec so every update's weight is multiplied by expr.eval(value).


Wrap this paired spec so every update's weight is multiplied by expr.eval(x, y).


Wrap this vector spec so every update's weight is multiplied by expr.eval(0, 0, vec).


Wrap this discrete spec so every update's weight is multiplied by expr.eval(value.toDouble()).


Wrap this regression spec so every update's weight is multiplied by expr.eval(0, y, v).

windowed

fun <R : Result> SeriesStatSpec<R>.windowed(durationMillis: Long, slices: Int = 10): SeriesStatSpec<R>(source)

Wrap this series spec in a sliding time window of durationMillis split into slices buckets.


fun <R : Result> PairedStatSpec<R>.windowed(durationMillis: Long, slices: Int = 10): PairedStatSpec<R>(source)

Wrap this paired spec in a sliding time window of durationMillis split into slices buckets.


fun <R : Result> VectorStatSpec<R>.windowed(durationMillis: Long, slices: Int = 10): VectorStatSpec<R>(source)

Wrap this vector spec in a sliding time window of durationMillis split into slices buckets.


fun <R : Result> DiscreteStatSpec<R>.windowed(durationMillis: Long, slices: Int = 10): DiscreteStatSpec<R>(source)

Wrap this discrete spec in a sliding time window of durationMillis split into slices buckets.

withFeedback

Wrap this inner series spec with a feedback primary; the projection AST sees the primary snapshot.

withFixedX

Adapt a paired spec into a series spec by pinning x to fixedX.

withFixedY

Adapt a paired spec into a series spec by pinning y to fixedY.

withSelfLag

Lift a paired spec into a series spec by self-pairing each input with the value seen k updates ago.

withTimeAsX

Adapt a paired spec into a series spec by using the update timestamp as x.

withTimeAsY

Adapt a paired spec into a series spec by using the update timestamp as y.

withValue

Wrap this series spec so every update pushes the constant value regardless of input.


Wrap this discrete spec so every update pushes the constant value regardless of input.

withWeight

Wrap this series spec so every update applies the per-observation weight multiplier.


Wrap this paired spec so every update applies the per-observation weight multiplier.


Wrap this vector spec so every update applies the per-observation weight multiplier.


Wrap this discrete spec so every update applies the per-observation weight multiplier.


Wrap this regression spec so every update uses weight regardless of caller input.