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

            classifier.AddClassification("Alpha", d => char.IsLetterOrDigit(d));

            classifier.Classify(() => anon.AnyAlphaNumericChar(Distribution.Uniform));

            Assert.True(classifier["Alpha"] == 1.0);
        }