Beispiel #1
0
        public void GetRateTest()
        {
            MarkovChain <int> chains = new MarkovChain <int>(4);

            chains.AddEdge(0, 4, 0.2);
            chains.AddEdge(5, 6, 0.7);
            chains.AddEdge(7, 9, 0.1);

            Assert.That(0.2, Is.EqualTo(chains.GetRate(0, 4)));
            Assert.That(0.1, Is.EqualTo(chains.GetRate(7, 9)));
            Assert.That(0, Is.EqualTo(chains.GetRate(10, 11)));
        }