Accord.Tests.MachineLearning.NaiveBayesTest.NaiveBayesConstructorTest4 C# (CSharp) Method

NaiveBayesConstructorTest4() private method

private NaiveBayesConstructorTest4 ( ) : void
return void
        public void NaiveBayesConstructorTest4()
        {
            int classes = 2;
            int[] symbols = { 2, 3, 1 };
            double[] priors = { 0.4, 0.6 };
            NaiveBayes target = new NaiveBayes(classes, priors, symbols);

            Assert.AreEqual(2, target.ClassCount);
            Assert.AreEqual(3, target.InputCount);
            Assert.AreEqual(2, target.Priors.Length);
            Assert.AreEqual(0.4, target.Priors[0]);
            Assert.AreEqual(0.6, target.Priors[1]);
        }