kumulant

GammaScalePosterior

@Serializable
@SerialName(value = "GammaScalePosterior")
data class GammaScalePosterior(val fixedShape: Double) : Posterior<WeightedMeanResult> (source)

Gamma posterior over the scale of a Gamma likelihood with fixed shape - the shape is a posterior parameter rather than something we infer from data. Not an object because of that parameter.

Constructors

Link copied to clipboard
constructor(fixedShape: Double)

Properties

Link copied to clipboard

Known shape parameter of the Gamma likelihood.

Functions

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

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

GammaScalePosterior

constructor(fixedShape: Double)(source)

fixedShape

Known shape parameter of the Gamma likelihood.

sample

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

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