예제 #1
0
        public static Configuration IFSEmpty()
        {
            Configuration c = new Configuration();
            c.Values.Add("A", (new double[] { 0 }).ToList<double>());
            c.Values.Add("B", (new double[] { 0 }).ToList<double>());
            c.Values.Add("C", (new double[] { 0 }).ToList<double>());
            c.Values.Add("D", (new double[] { 0 }).ToList<double>());
            c.Values.Add("E", (new double[] { 0 }).ToList<double>());
            c.Values.Add("F", (new double[] { 0 }).ToList<double>());
            c.Values.Add("Probability", (new double[] { 1 }).ToList<double>());

            return c;
        }
예제 #2
0
파일: Fractal.cs 프로젝트: lightfaith/NAVY
 public Fractal(Configuration config = null)
 {
     r = new Random();
     Config = (config == null || !config.IsOK()) ? Configuration.IFSEmpty() : config;
     Picture = new Bitmap(Width, Height);
 }