Beispiel #1
0
        public void AddDefaultV2DataCollection()
        {
            V2DataCollection data_collection = new V2DataCollection("data_collection", 2.0f);

            data_collection.InitRandom(2, 10.0f, 20.0f, -11.0f, -5.0f);
            Add(data_collection);
        }
Beispiel #2
0
        public void AddDefaults()
        {
            // random init
            V2DataOnGrid data_grid_1 = new V2DataOnGrid("data_grid_2", 6.0f, new Grid1D(2, 2), new Grid1D(3, 2));

            data_grid_1.InitRandom(-10.0, 15.0);
            V2DataOnGrid data_grid_2 = new V2DataOnGrid("data_grid_2", 6.0f, new Grid1D(1, 0), new Grid1D(2, 0));

            data_grid_2.InitRandom(-10.0, 15.0);


            V2DataCollection data_collection_1 = new V2DataCollection("data_collection_1", 2.0f);

            data_collection_1.InitRandom(0, 10.0f, 20.0f, -11.0f, -5.0f);
            V2DataCollection data_collection_2 = new V2DataCollection("data_collection_2", 3.0f);

            data_collection_2.InitRandom(2, 10.0f, 20.0f, -2.0f, 2.0f);
            V2DataCollection data_collection_3 = new V2DataCollection("data_collection_1", 2.0f);

            data_collection_3.InitRandom(4, 1.0f, 12.0f, 11.0f, 25.0f);

            Add(data_grid_1);
            Add(data_grid_1);
            Add(data_collection_1);
            Add(data_collection_2);
            Add(data_grid_2);
            Add(data_collection_3);
        }