Ejemplo n.º 1
0
        /**
         *初始化,三维坐标系上分配网格
         */
        public void init(ConfParam confParam)
        {
            clear();
            int xCount = Convert.ToInt32((confParam.xEnd - confParam.xStart) / confParam.xInterval) + 1;
            int yCount = Convert.ToInt32((confParam.yEnd - confParam.yStart) / confParam.yInterval) + 1;
            int zCount = Convert.ToInt32((confParam.zEnd - confParam.zStart) / confParam.zInterval) + 1;

            gridX = new List <double>();
            fillList(gridX, confParam.xStart, confParam.xInterval, xCount);
            gridY = new List <double>();
            fillList(gridY, confParam.yStart, confParam.yInterval, yCount);
            gridZ = new List <double>();
            fillList(gridZ, confParam.zStart, confParam.zInterval, zCount);
            for (int k = 0; k < zCount; k++)
            {
                for (int i = 0; i < yCount; i++)
                {
                    for (int j = 0; j < xCount; j++)
                    {
                        Tuple <int, int, int> tuple = new Tuple <int, int, int>(k, i, j);
                        pfMap.Add(tuple, 0);
                        absValueMap.Add(tuple, 0);
                    }
                }
            }
        }
Ejemplo n.º 2
0
        public void init(string epc, ConfParam confParam)
        {
            AbstractCalculate localCalculateService = new OriginSAR();

            localCalculateService.init(confParam);
            if (!map.ContainsKey(epc))
            {
                map.Add(epc, localCalculateService);
            }
        }