Beispiel #1
0
        public void TestNormalDensity()
        {
            var input  = 5.1;
            var result = WaveMath.NormalDensity(input, 2, 1);

            Assert.AreEqual(0.0032668190561999247, result);

            input  = 0;
            result = WaveMath.NormalDensity(input, 2, 0);
            Assert.IsTrue(double.IsNaN(result));

            input  = -10;
            result = WaveMath.NormalDensity(input, 2, 0);
            Assert.IsTrue(double.IsNaN(result));
        }