Beispiel #1
0
 private static void binCreationPhase(InputParser inputParser, BinsCreator binsCreator, out int serverNO, 
     out int pointNO, out double delta, out int spaceDimension, out int histogramResolution, out Array array,
     out int[] binHefts, out int binNO, out double explicitLimit)
 {
     explicitLimit = inputParser.determineExplicitOrImplicitLimit();
     bool together = inputParser.determineTogetherOrSeparately();
     if (together)
     {
         array = inputParser.parseInputFile(out spaceDimension, out histogramResolution, out serverNO,
             out pointNO, out delta);
     }
     else
     {
         parseInputSeparately(inputParser, out serverNO, out pointNO, out delta, out spaceDimension,
             out histogramResolution, out array);
     }
     Console.WriteLine("Point no.: {0}", pointNO);
     Console.WriteLine("Delta: {0}", delta);
     Bin[] bins = binsCreator.createBinsFromHistogram(spaceDimension, histogramResolution, array);
     binNO = (int)Math.Pow(histogramResolution, spaceDimension);
     binHefts = writeOutBins(spaceDimension, binNO, bins);
 }