private void SetParam() { simulationOptions = new SimulationOptions((int)numericUpDownSimulations.Value, (int)numericUpDownPopulation.Value, (float)numericUpDownInfection.Value, (float)numericUpDownRecovery.Value); float[] retainGlobalContactDistribution = new float[2]; retainGlobalContactDistribution[0] = 0.8f; retainGlobalContactDistribution[1] = 1f; simulationOptions.SetRateMoveAway((float)numericUpDownMoving.Value, retainGlobalContactDistribution); float[] qlickDistribution = new float[21]; //qlickDistribution[15] = 1;// 0.95f; qlickDistribution[20] = 2; //qlickDistribution[100] = 0.1f; simulationOptions.SetCliqueDistribution(qlickDistribution); int[] qlickPresetDistribution = new int[2]; qlickPresetDistribution[0] = 200; qlickPresetDistribution[1] = 40; //qlickPresetDistribution[1] = 100; //simulationOptions.Set_PresetCliqkc(qlickPresetDistribution); float[] edgeDistribution = new float[21]; edgeDistribution[0] = 0.9f; edgeDistribution[1] = 1.1f; simulationOptions.SetRandomEdgeDistribution(edgeDistribution); }
public Ultimate_Simulator_Manager(SimulationOptions simulationOptions) { this.simulationOptions = simulationOptions; }