コード例 #1
0
        public FrmAutomaFuzzy()
        {
            RecognitionFuzzy regexFuzzy = new RecognitionFuzzy("[0-9]+",
                    new MinNorm(), new MaxConorm(), 0.3);
            double pertinence = regexFuzzy.Match("123456a");

            InitializeComponent();
        }
コード例 #2
0
        public FrmAutomaFuzzy()
        {
            RecognitionFuzzy regexFuzzy = new RecognitionFuzzy("[0-9]+",
                                                               new MinNorm(), new MaxConorm(), 0.3);
            double pertinence = regexFuzzy.Match("123456a");


            InitializeComponent();
        }
コード例 #3
0
        private void PrintMatch()
        {
            double pertinence = regexFuzzy.Match(txtValidate.Text);

            lblFinalPertinence.Text      = pertinence.ToString();
            lblFinalPertinence.BackColor = Utils.GetColor(pertinence);
            lbPass.Items.Clear();
            for (int i = 0; i < regexFuzzy.TableAutomaProcessing.Count; i++)
            {
                lbPass.Items.Add(string.Format("{0} -> {1}", i, string.Join("  ", regexFuzzy.TableAutomaProcessing[i].Select(d => d.ToString()))));
            }
        }