Beispiel #1
0
        public void AddDefaultDataOnGridCollection()
        {
            Grid         grid       = new Grid(0, 0.1f, 10);
            DateTime     dateTime   = new DateTime(2020, 07, 17, 22, 10, 57);
            V1DataOnGrid dataOnGrid = new V1DataOnGrid("default data on grid", dateTime, grid);

            dataOnGrid.InitRandom(5, 10);
            Add(dataOnGrid);
        }
Beispiel #2
0
        public void AddDefaults()
        {
            //for (int i = 0; i < 2; i++) // length of vectors
            //{
            //    V1DataOnGrid data = new V1DataOnGrid($"id={i}", DateTime.Now, new Grid(0, 0.5f, 3));
            //    data.InitRandom(-1f, 1f);
            //    Add(data);
            //}
            //for (int i = 1; i <= 2; i++) // amount of vectors
            //{
            //    V1DataCollection data = new V1DataCollection($"id={i}", DateTime.Now);
            //    data.InitRandom(10 + 2 * i, 0f, 100f, -1f, 1f);
            //    Add(data);
            //}

            //Add(new V1DataOnGrid($"grid", DateTime.Now, new Grid(1f, 0, 0)));
            //Add(new V1DataCollection($"collection", DateTime.Now));

            V1DataOnGrid data = new V1DataOnGrid($"id={0}", DateTime.Now, new Grid(0, 0.5f, 3));

            data.InitRandom(-1f, 1f);
            Add(data);

            data = new V1DataOnGrid($"id={1}", DateTime.Now, new Grid(0, 0.5f, 5));
            data.InitRandom(-1f, 1f);
            Add(data);

            V1DataCollection datacol = new V1DataCollection($"id={2}", DateTime.Now);

            datacol.InitRandom(12, 0f, 100f, -1f, 1f);
            Add(datacol);

            datacol = new V1DataCollection($"id={3}", DateTime.Now);
            datacol.InitRandom(12, 0f, 100f, -1f, 1f);
            Add(datacol);
            OnCollectionChanged(NotifyCollectionChangedAction.Add);
            OnPropertyChanged("Count");
            OnPropertyChanged("MaxNumberofMesRes");
            UserCollectionChanged = true;
        }
Beispiel #3
0
        public void AddDefaults()
        {
            //for (int i = 0; i < 2; i++) // length of vectors
            //{
            //    V1DataOnGrid data = new V1DataOnGrid($"id={i}", DateTime.Now, new Grid(0, 0.5f, 3));
            //    data.InitRandom(-1f, 1f);
            //    Add(data);
            //}
            //for (int i = 1; i <= 2; i++) // amount of vectors
            //{
            //    V1DataCollection data = new V1DataCollection($"id={i}", DateTime.Now);
            //    data.InitRandom(10 + 2 * i, 0f, 100f, -1f, 1f);
            //    Add(data);
            //}

            //Add(new V1DataOnGrid($"grid", DateTime.Now, new Grid(1f, 0, 0)));
            //Add(new V1DataCollection($"collection", DateTime.Now));

            V1DataOnGrid data = new V1DataOnGrid($"id={0}", DateTime.Now, new Grid(0, 0.5f, 3));

            data.InitRandom(-1f, 1f);
            Add(data);

            data = new V1DataOnGrid($"id={1}", DateTime.Now, new Grid(0, 0.5f, 5));
            data.InitRandom(-1f, 1f);
            Add(data);

            V1DataCollection datacol = new V1DataCollection($"id={2}", DateTime.Now);

            datacol.InitRandom(12, 0f, 100f, -1f, 1f);
            Add(datacol);

            datacol = new V1DataCollection($"id={3}", DateTime.Now);
            datacol.InitRandom(12, 0f, 100f, -1f, 1f);
            Add(datacol);
        }