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; }
public Fractal(Configuration config = null) { r = new Random(); Config = (config == null || !config.IsOK()) ? Configuration.IFSEmpty() : config; Picture = new Bitmap(Width, Height); }