public void AddDefaults() // Можно изменить параметр на случайные
 {
     for (int i = 0; i < 5; i++)
     {
         V4DataCollection v1 = new V4DataCollection("Test1", 50);
         v1.InitRandom(30, 5, 5, 0, 100);
         V4DataOnGrid v2 = new V4DataOnGrid("Test2", 60, new Grid2D((float)0.5, 10, (float)0.5, 10));
         v2.InitRandom(10, 200);
         Add(v1);
         Add(v2);
     }
 }
Beispiel #2
0
        static void Main(string[] args)
        {
            V4DataOnGrid grid_obj = new V4DataOnGrid("1", 70, new Grid2D(0.1f, 10, 0.1f, 10));

            grid_obj.InitRandom(0, 100);
            Console.WriteLine(grid_obj.ToLongString());

            V4DataCollection data_obj = (V4DataCollection)grid_obj;

            Console.WriteLine(data_obj.ToLongString());

            V4MainCollection collection = new V4MainCollection();

            collection.AddDefaults();
            Console.WriteLine(collection.ToString());
            foreach (V4Data item in collection)
            {
                foreach (Complex i in item.NearMax((float)11.8))
                {
                    Console.Write(i);
                }
                Console.WriteLine();
            }
        }