Exemplo n.º 1
0
 private void button4_Click(object sender, EventArgs e)
 {
     int Solver = 0;
     if (radioButton3.Checked)
         Solver = 0;
     if (radioButton4.Checked)
         Solver = 1;
     if (radioButton5.Checked)
         Solver = 2;
     Simulator Sim = new Simulator(Solver);
     Sim.TestCalcConfidenceRow(int.Parse(textBox10.Text), int.Parse(textBox11.Text), int.Parse(textBox8.Text));
 }
Exemplo n.º 2
0
 private void button2_Click_1(object sender, EventArgs e)
 {
     int Solver = 0;
     if (radioButton3.Checked)
         Solver = 0;
     if (radioButton4.Checked)
         Solver = 1;
     if (radioButton5.Checked)
         Solver = 2;
     Simulator Sim = new Simulator(Solver);
     Tuple<long, long> Result = Sim.FindAllMatchings(int.Parse(textBox3.Text), false, "");
     textBox4.Text = "#Not Popular: " + Result.Item1.ToString() + "  #Total: " + Result.Item2.ToString();
 }
Exemplo n.º 3
0
 private void button3_Click(object sender, EventArgs e)
 {
     int Solver = 0;
     if (radioButton3.Checked)
         Solver = 0;
     if (radioButton4.Checked)
         Solver = 1;
     if (radioButton5.Checked)
         Solver = 2;
     Simulator Sim = new Simulator(Solver);
     List<double> Result = Sim.SimulateRandomInstances(int.Parse(textBox6.Text), int.Parse(textBox7.Text));
     textBox5.Text = "Conf. Lower: " + Result[0].ToString() + "  Conf. Upper: " + Result[1].ToString() + "  #Total: " + Result[2].ToString();
 }