NLAlib.samplingMeasure_real_apply
Library · theorem
The probability of a set of indices is the sum of their weights: the measure of a finite set s is \sum_{i \in s} p_i.
NLAlib.samplingMeasure_real_apply.{u_2} {ι : Type u_2} [Fintype ι] [MeasurableSpace ι]
[MeasurableSingletonClass ι] (p : ι → ℝ≥0) (s : Finset ι) :
(samplingMeasure p).real ↑s = ∑ i ∈ s, ↑(p i)Import NLAlib.Probability.Distributions.Sampling.