public void Base_ExpectedValueGeneric() { var P = 0.5; var X = new Bernoulli(P); var E = X.ExpectedValueWithConfidence(); var Err = Math.Abs(E.Mean - P); Assert.IsTrue(Err < eps); }