public void Base_ExpectedValue() { var Mu = 5.0; var X = new Gaussian(Mu, 2.0); var E = X.ExpectedValueWithConfidence().Mean; var Err = Math.Abs(E - Mu) / Mu; Assert.IsTrue(Err < eps); }
public void Base_TestExpectedValue() { var X = new Gaussian(10, 1); var t = X.ExpectedValueWithConfidence(1000); var m = t.Mean; var ci = t.CI; Assert.IsTrue(ApproxEqual(m, 10, 0.5)); }
public void Base_TestExpectedValue() { var X = new Gaussian(10, 1); var t = X.ExpectedValueWithConfidence(1000); var m = t.Mean; var ci = t.CI; Assert.IsTrue(m - ci < 10 && 10 < m + ci); }
public void Base_ExpectedValue() { var Mu = 5.0; var X = new Gaussian(Mu, 2.0); var E = X.ExpectedValueWithConfidence().Mean; var Err = Math.Abs(E - Mu) / Mu; Assert.IsTrue(Err < eps); }
public void Base_TestExpectedValue() { var X = new Gaussian(10, 1); var t = X.ExpectedValueWithConfidence(1000); var m = t.Mean; var ci = t.CI; Assert.IsTrue(ApproxEqual(m, 10, 0.5)); }
public void Base_TestExpectedValue() { var X = new Gaussian(10, 1); var t = X.ExpectedValueWithConfidence(1000); var m = t.Mean; var ci = t.CI; Assert.IsTrue(m - ci < 10 && 10 < m + ci); }