Esempio n. 1
0
 public void TestInvalidQuantileFunction()
 {
     Assert.Throws <ArgumentException>(() => _ = StandardNormalDistribution.QuantileFunction(BitDecrement(0d)));
     Assert.Throws <ArgumentException>(() => _ = StandardNormalDistribution.QuantileFunction(BitIncrement(1d)));
 }
Esempio n. 2
0
 public void TestQuantileFunction(double probability, double expected)
 {
     Assert.AreEqual(expected, StandardNormalDistribution.Instance.Quantile(probability));
     Assert.AreEqual(expected, StandardNormalDistribution.QuantileFunction(probability));
 }