Accord.Tests.MachineLearning.NaiveBayesGenericTest.NaiveBayesConstructorTest C# (CSharp) Method

NaiveBayesConstructorTest() private method

private NaiveBayesConstructorTest ( ) : void
return void
        public void NaiveBayesConstructorTest()
        {
            int classes = 2;
            int inputs = 0;
            bool thrown = false;

            try { new NaiveBayes<UniformDiscreteDistribution>(classes, inputs, new UniformDiscreteDistribution(0, 3)); }
            catch { thrown = true; }

            Assert.IsTrue(thrown);
        }