public void ValidateProbabilityLn(int[] x)
        {
            var b = new Multinomial(_largeP, x.Sum());

            AssertHelpers.AlmostEqualRelative(b.ProbabilityLn(x), Math.Log(b.Probability(x)), 12);
        }
Ejemplo n.º 2
0
        public void ValidateProbabilityLn([Values(new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9 }, new[] { 1, 1, 1, 2, 2, 2, 3, 3, 3 }, new[] { 5, 6, 7, 8, 7, 6, 5, 4, 3 })] int[] x)
        {
            var b = new Multinomial(_largeP, x.Sum());

            AssertHelpers.AlmostEqual(b.ProbabilityLn(x), Math.Log(b.Probability(x)), 12);
        }
Ejemplo n.º 3
0
 public void ValidateProbabilityLn(int[] x)
 {
     var b = new Multinomial(_largeP, x.Sum());
     AssertHelpers.AlmostEqualRelative(b.ProbabilityLn(x), Math.Log(b.Probability(x)), 12);
 }
Ejemplo n.º 4
0
 public void ValidateProbabilityLn([Values(new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9 }, new[] { 1, 1, 1, 2, 2, 2, 3, 3, 3 }, new[] { 5, 6, 7, 8, 7, 6, 5, 4, 3 })] int[] x)
 {
     var b = new Multinomial(_largeP, x.Sum());
     AssertHelpers.AlmostEqual(b.ProbabilityLn(x), Math.Log(b.Probability(x)), 12);
 }