Beispiel #1
0
 private static void parseInputSeparately(InputParser inputParser, out int serverNO, out int pointNO,
     out int spaceDimension, out int histogramResolution, out int scaleNumber,
     out int cellMaxValue, out Array array, out int slidingWindowSize)
 {
     inputParser.parseInputSizes(out spaceDimension, out histogramResolution, out serverNO, out scaleNumber,
         out slidingWindowSize);
     Console.WriteLine("Space dim: {0}, resolution: {1}, server no.: {2}, scale no.: {3}, sliding window size: {4}",
         spaceDimension, histogramResolution, serverNO, scaleNumber, slidingWindowSize);
     int[] lengthsArray = new int[spaceDimension];
     for (int idx = 0; idx < spaceDimension; idx++)
     {
         lengthsArray[idx] = histogramResolution;
     }
     array = Array.CreateInstance(typeof(int), lengthsArray);
     inputParser.parseInputArray(serverNO, histogramResolution, array, out pointNO, out cellMaxValue);
 }