NLA-lib Explorer

NLAlib.Computation.Dist.real_law_uniform_Icc

Library · theorem

The uniform law of a subinterval: for -1 \le a \le \mathbf{b} \le 1, a uniform draw lies in [a, \mathbf{b}] with probability \frac{\mathbf{b} - a}{2}. No printed source.

NLAlib.Computation.Dist.real_law_uniform_Icc {a b : ℝ} (ha : -1 ≤ a) (hab : a ≤ b) (hb : b ≤ 1) :
  Computation.Dist.uniform.law.real (Set.Icc a b) = (b - a) / 2

Full source on GitHub

Import NLAlib.RandomMatrix.TapeLaw.