@Test public void testExecute() throws Exception { ProbabilityGeneratorCLI probabilityGeneratorCLI = new ProbabilityGeneratorCLI(); double[] pCumArray = probabilityGeneratorCLI.execute(100, cubeName); for (double pCum : pCumArray) { System.out.print(pCum + " "); } int pIdx = ProbabilityGenerator.searchIndex(0.5, pCumArray); System.out.print("\n" + pIdx); }
protected void execute(OptionsHelper optionsHelper) throws Exception { this.size = Integer.parseInt(optionsHelper.getOptionValue(OPTION_SIZE)); this.outputPath = optionsHelper.getOptionValue(OPTION_OUTPUT); run(); }
ProbabilityGeneratorCLI extends AbstractApplication { protected void execute(OptionsHelper optionsHelper) throws Exception { this.size = Integer.parseInt(optionsHelper.getOptionValue(OPTION_SIZE)); this.outputPath = optionsHelper.getOptionValue(OPTION_OUTPUT); run(); } }
ProbabilityGeneratorCLI extends AbstractApplication { protected void execute(OptionsHelper optionsHelper) throws Exception { this.size = Integer.parseInt(optionsHelper.getOptionValue(OPTION_SIZE)); this.outputPath = optionsHelper.getOptionValue(OPTION_OUTPUT); run(); } ProbabilityGeneratorCLI(); }
ProbabilityGeneratorCLI extends AbstractApplication { protected void execute(OptionsHelper optionsHelper) throws Exception { this.size = Integer.parseInt(optionsHelper.getOptionValue(OPTION_SIZE)); this.outputPath = optionsHelper.getOptionValue(OPTION_OUTPUT); run(); } ProbabilityGeneratorCLI(); double[] execute(int sizeOfQueryList, String outputPath); double[] execute(int size); static void storeProbability(double[] probArray, String outputPath); static void main(String[] args); }
ProbabilityGeneratorCLI extends AbstractApplication { protected void execute(OptionsHelper optionsHelper) throws Exception { this.size = Integer.parseInt(optionsHelper.getOptionValue(OPTION_SIZE)); this.outputPath = optionsHelper.getOptionValue(OPTION_OUTPUT); run(); } ProbabilityGeneratorCLI(); double[] execute(int sizeOfQueryList, String outputPath); double[] execute(int size); static void storeProbability(double[] probArray, String outputPath); static void main(String[] args);  }