NLA-lib Explorer

NLAlib.isProbabilityMeasure_samplingSketch

Library · theorem

The law of the row-sampling sketch is a probability measure for weights summing to one.

NLAlib.isProbabilityMeasure_samplingSketch.{u_2, u_3, u_4} {𝕜 : Type u_2} [RCLike 𝕜] {k : Type u_3}
  {n : Type u_4} [Fintype k] [Fintype n] [DecidableEq n] {p : n → ℝ≥0} (hp : ∑ i, p i = 1) :
  IsProbabilityMeasure (samplingSketch k p)

Full source on GitHub

Import NLAlib.Sketching.Sampling.RowSampling.