private void button3_Click(object sender, EventArgs e) { if (jury1DSetup1.Enabled) { ProfileTree t = ProfileAutomatic.AnalyseProfileFile(profileFile, SIMDIST.SIMILARITY); if (t != null) { string profileName = "automatic_similarity.profile"; t.SaveProfiles(profileName); jury1DSetup1.profileName = profileName; } else { MessageBox.Show("Could not create automatic profile"); } } if (distanceControl1.Enabled) { if (distanceControl1.distDef == DistanceMeasures.HAMMING) { ProfileTree t = ProfileAutomatic.AnalyseProfileFile(profileFile, SIMDIST.DISTANCE); string profileName = "automatic_distance.profile"; t.SaveProfiles(profileName); distanceControl1.profileName = profileName; } if (distanceControl1.reference) { ProfileTree t = ProfileAutomatic.AnalyseProfileFile(profileFile, SIMDIST.SIMILARITY); string profileName = "automatic_similarity.profile"; t.SaveProfiles(profileName); distanceControl1.referenceProfile = profileName; } } }
public void GenerateAutomaticProfiles(string fileName) { ProfileTree t = ProfileAutomatic.AnalyseProfileFile(fileName, SIMDIST.DISTANCE); string profileName = "automatic_distance.profile"; t.SaveProfiles(profileName); hammingProfile = profileName; }
private void button3_Click(object sender, EventArgs e) { ProfileTree t = ProfileAutomatic.AnalyseProfileFile(profileFile, SIMDIST.SIMILARITY); string profileName = "automatic_similarity.profile"; t.SaveProfiles(profileName); jury1DSetup1.profileName = profileName; }
public void GenerateAutomaticProfiles(string fileName) { ProfileTree t = ProfileAutomatic.AnalyseProfileFile(fileName, SIMDIST.SIMILARITY); string profileName = "automatic_similarity.profile"; t.SaveProfiles(profileName); this.profileName = profileName; this.profileNameReg = profileName; }
public void GenerateAutomaticProfiles(string fileName) { ProfileTree t = ProfileAutomatic.AnalyseProfileFile(fileName, SIMDIST.DISTANCE); string profileName = "automatic_distance.profile"; t.SaveProfiles(profileName); hammingProfile = profileName; t = ProfileAutomatic.AnalyseProfileFile(fileName, SIMDIST.SIMILARITY); profileName = "automatic_similarity.profile"; t.SaveProfiles(profileName); jury1DProfile = profileName; }
private void button3_Click(object sender, EventArgs e) { ProfileTree t; if (distanceControl1.distDef == DistanceMeasures.HAMMING) { t = ProfileAutomatic.AnalyseProfileFile(profileFile, SIMDIST.DISTANCE); if (t != null) { string profileName = "automatic_distance.profile"; t.SaveProfiles(profileName); distanceControl1.profileName = profileName; } else { MessageBox.Show("Profile cannot be generated"); } } }
private void button5_Click(object sender, EventArgs e) { DialogResult res = openFileDialog1.ShowDialog(); if (res == DialogResult.OK) { localNode.profName = textBox1.Text; ProfileTree t = ProfileAutomatic.AnalyseProfileFile(openFileDialog1.FileName, SIMDIST.SIMILARITY); if (t.masterNode.ContainsKey(localNode.profName)) { dataGridView1.Rows.Clear(); foreach (var item in t.masterNode[localNode.profName].states.Keys) { dataGridView1.Rows.Add(1); dataGridView1.Rows[dataGridView1.Rows.Count - 2].Cells[0].Value = item; dataGridView1.Rows[dataGridView1.Rows.Count - 2].Cells[1].Value = item; } } } }