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

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

Properties

Link copied to clipboard
val arm: Arm<*>

Sub-arm spec; receives routed observations.

Link copied to clipboard

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

Link copied to clipboard

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).

Link copied to clipboard

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

CompositeSubArm

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

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).