kumulant

BetaPosterior

@Serializable
@SerialName(value = "BetaPosterior")
data object BetaPosterior : Posterior<BernoulliSumResult> (source)

Beta posterior over a Bernoulli rate. successes and trials-successes are the Beta parameters; both must be positive (i.e. snapshot must be prior-seeded).

Functions

Link copied to clipboard
open override fun sample(snapshot: BernoulliSumResult, rng: Random): Double

Draw a single Monte Carlo sample of the arm's reward from its posterior.

sample

open override fun sample(snapshot: BernoulliSumResult, rng: Random): Double(source)

Draw a single Monte Carlo sample of the arm's reward from its posterior.