@Test public void testMeanBootstrapping() { final List<Double> observations = ImmutableList.of(61.0, 88.0, 89.0, 89.0, 90.0, 92.0, 93.0, 94.0, 98.0, 98.0, 101.0, 102.0, 105.0, 108.0, 109.0, 113.0, 114.0, 115.0, 120.0, 138.0); DescriptiveStatistics stats = bootstrap(observations, mean(), 100000, new ThreadedContext(123, 4)); Assert.assertEquals(3.4, stats.getStandardDeviation(), 0.1); Assert.assertEquals(94.0, stats.getPercentile(2.5), 0.1); Assert.assertEquals(107.6, stats.getPercentile(97.5), 0.1); }
public static <T> DescriptiveStatistics bootstrap(Bootstrapable<T> bootstrapable, Transform<List<T>, Double> statistics, int k, ThreadedContext context) { return bootstrap(bootstrapable.getSample(), statistics, k, context); }
Bootstrap { public static <T> DescriptiveStatistics bootstrap(Bootstrapable<T> bootstrapable, Transform<List<T>, Double> statistics, int k, ThreadedContext context) { return bootstrap(bootstrapable.getSample(), statistics, k, context); } }
Bootstrap { public static <T> DescriptiveStatistics bootstrap(Bootstrapable<T> bootstrapable, Transform<List<T>, Double> statistics, int k, ThreadedContext context) { return bootstrap(bootstrapable.getSample(), statistics, k, context); }  }
Bootstrap { public static <T> DescriptiveStatistics bootstrap(Bootstrapable<T> bootstrapable, Transform<List<T>, Double> statistics, int k, ThreadedContext context) { return bootstrap(bootstrapable.getSample(), statistics, k, context); }  static DescriptiveStatistics bootstrap(Bootstrapable<T> bootstrapable,
			Transform<List<T>, Double> statistics, int k, ThreadedContext context); static DescriptiveStatistics bootstrap(final List<T> populationSample,
			final Transform<List<T>, Double> statistics, int k, final ThreadedContext context); static String bootstrapConfidenceIntervals(Bootstrapable<Double> bootstrapable, int k, double significance,
			ThreadedContext context); static String bootstrapConfidenceIntervals(final List<Double> populationSample, int k, double significance,
			ThreadedContext context); }
Bootstrap { public static <T> DescriptiveStatistics bootstrap(Bootstrapable<T> bootstrapable, Transform<List<T>, Double> statistics, int k, ThreadedContext context) { return bootstrap(bootstrapable.getSample(), statistics, k, context); }  static DescriptiveStatistics bootstrap(Bootstrapable<T> bootstrapable,
			Transform<List<T>, Double> statistics, int k, ThreadedContext context); static DescriptiveStatistics bootstrap(final List<T> populationSample,
			final Transform<List<T>, Double> statistics, int k, final ThreadedContext context); static String bootstrapConfidenceIntervals(Bootstrapable<Double> bootstrapable, int k, double significance,
			ThreadedContext context); static String bootstrapConfidenceIntervals(final List<Double> populationSample, int k, double significance,
			ThreadedContext context);  }