kumulant

Split

@Serializable
sealed interface Split(source)

Binary predicate routing a context vector to "pos" (true) or "neg" (false).

Built-in implementations: ThresholdSplit (numeric x[i] <= t) and ExprSplit (wrapping a wire-portable BoolExpr over the context vector). The interface is sealed so tree snapshots round-trip cleanly through kotlinx.serialization; callers needing custom predicates compose them as BoolExpr AST nodes and wrap them in ExprSplit.

Inheritors

Functions

Link copied to clipboard
abstract fun direction(row: VectorView): Boolean

Evaluate the predicate against the context row.

direction

abstract fun direction(row: VectorView): Boolean(source)

Evaluate the predicate against the context row.