Esempio n. 1
0
        public void AnyChar()
        {
            var anon       = new AnonymousData();
            var classifier = new Classifier <char>();

            classifier.AddClassification("GT", d => d > (char.MaxValue / 2));
            classifier.AddClassification("LT", d => d < (char.MaxValue / 2));

            classifier.Classify(() => anon.AnyChar());

            Assert.True(classifier["GT"] > 0.4);
            Assert.True(classifier["LT"] > 0.4);
        }