package com.k13n.soliton;

public class App {

  public static void main(String[] args) {
    int k = 50;
    double c = 0.05;
    double delta = 0.01;
    SolitonGenerator rng = new RobustSolitonGenerator(k, c, delta);

    HistogramSampler sampler = new HistogramSampler(rng);
    sampler.printHistogram(10000);
  }

}

@@ -43,273 +43,979 @@
 p %7B%0A
-%0A  public static void main(String%5B%5D args) %7B%0A    int k = 50;%0A    double c = 0.05;%0A    double delta = 0.01;%0A    SolitonGenerator rng = new RobustSolitonGenerator(k, c, delta);%0A%0A    HistogramSampler sampler = new HistogramSampler(rng);%0A    sampler.printHistogram(10000
+  private static int DEFAULT_NR_BLOCKS = 10000;%0A  private static double DEFAULT_FAILURE_PROBABILITY = 0.05;%0A%0A  public static void main(String%5B%5D args) %7B%0A    SolitonGenerator srng = fixedSpikeExample();%0A%0A    HistogramSampler sampler = new HistogramSampler(srng);%0A    int nrTrials = 10000;%0A    sampler.printHistogram(nrTrials);%0A  %7D%0A%0A  public static SolitonGenerator fixedSpikeExample() %7B%0A    int nrBlocks = DEFAULT_NR_BLOCKS;%0A    double failureProbability = DEFAULT_FAILURE_PROBABILITY;%0A    int spike = 30;%0A    return new RobustSolitonGenerator(nrBlocks, spike, failureProbability);%0A  %7D%0A%0A  public static SolitonGenerator paperExample() %7B%0A    int nrBlocks = DEFAULT_NR_BLOCKS;%0A    double failureProbability = DEFAULT_FAILURE_PROBABILITY;%0A    double c = 0.2;%0A    return new RobustSolitonGenerator(nrBlocks, c, failureProbability);%0A  %7D%0A%0A  public static SolitonGenerator idealSolitonExample() %7B%0A    int nrBlocks = DEFAULT_NR_BLOCKS;%0A    return new IdealSolitonGenerator(nrBlocks
 );%0A 

Add 3 different usage examples