public void LogRatioNormalizationTests()
        {
            var m1s2 = new GaussianDistribution(1, 2);
            var m3s4 = new GaussianDistribution(3, 4);
            var lrn  = GaussianDistribution.LogRatioNormalization(m1s2, m3s4);

            Assert.AreEqual(2.6157405972171204, lrn, ErrorTolerance);
        }
Exemple #2
0
        public void LogRatioNormalizationTests()
        {
            // Verified with Ralf Herbrich's F# implementation
            var m1s2 = new GaussianDistribution(1, 2);
            var m3s4 = new GaussianDistribution(3, 4);
            var lrn  = GaussianDistribution.LogRatioNormalization(m1s2, m3s4);

            Assert.AreEqual(2.6157405972171204, lrn, ErrorTolerance);
        }