private void FormGini_Load(object sender, EventArgs e) { FormUtama form = (FormUtama)this.Owner; list = form.listOfPerson; Total(); GiniT yesF1 = Feat1("YES"); listGiniF1.Add(yesF1); GiniT noF1 = Feat1("NO"); listGiniF1.Add(noF1); GiniT yesF2 = Feat2("YES"); listGiniF2.Add(yesF2); GiniT noF2 = Feat2("YES"); listGiniF2.Add(noF2); yesF1.CalcGini(); noF1.CalcGini(); yesF2.CalcGini(); noF2.CalcGini(); textBoxOutput.Text = yesF1.Gini.ToString(); textBox1.Text = GiniChild.CalcGiniChild(listGiniF2, total).ToString(); //GiniChild.CalcGiniChild(listGiniF1, total).ToString(); // }
private void FormGini_Load(object sender, EventArgs e) { FormUtama form = (FormUtama)this.Owner; list = form.listOfPerson; }