예제 #1
0
        public void TestGammaWithBoundsFillSamples()
        {
            // arrange
            var subject = new GammaDistribution(1d, 1d, 0.3, 0.7);
            var samples = Range(0, 42).Map(_ => NaN).ToArray();

            // act
            subject.FillSamples(samples);

            // assert
            Assert.IsTrue(samples.All(d => d > 0.3 && d < 0.7));
        }