kumulant

UnivariateBanditSpec

@Serializable
sealed interface UnivariateBanditSpec(source)

Wire-portable specification for a univariate bandit instance.

Each variant mirrors the constructor of its concrete class. Materialisation lives in BanditFactory, which threads a Random source through at build time (the source itself is not part of the wire format).

Inheritors

Functions

Link copied to clipboard
fun UnivariateBanditSpec.materialize(random: Random = Random.Default): Bandit

Dispatch any UnivariateBanditSpec to its concrete bandit.