public FrmAutomaFuzzy() { RecognitionFuzzy regexFuzzy = new RecognitionFuzzy("[0-9]+", new MinNorm(), new MaxConorm(), 0.3); double pertinence = regexFuzzy.Match("123456a"); InitializeComponent(); }
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())))); } }