kumulant

CompositeSubArm

@Serializable
@SerialName(value = "CompositeSubArm")
data class CompositeSubArm(val arm: Arm<*>, val valueExpr: ScalarExpr = X, val weightExpr: ScalarExpr = Const(1.0), val filter: BoolExpr? = null)(source)

One leg of a CompositeArm: which arm receives observations, with optional AST-driven transformation of value, weight, and a filter predicate.

Constructors

CompositeSubArm

constructor(arm: Arm<*>, valueExpr: ScalarExpr = X, weightExpr: ScalarExpr = Const(1.0), filter: BoolExpr? = null)(source)

Properties

arm

val arm: Arm<*>(source)

Sub-arm spec; receives routed observations.

filter

If non-null, this sub-arm only sees observations where the predicate evaluates true against the raw value.

valueExpr

Expression evaluated against the raw observation to produce this sub-arm's input value. Default X passes the observation through unchanged (per-arm encode still applies).

weightExpr

Multiplier on the observation's weight; defaults to 1.0 (passthrough).