class StatisticsCalculatorFactory {

  public static Function<double[], Double> getCalculator(final String name) {
    final Function<double[], Double> calculator = s_staticInstances.get(name);
    if (calculator != null) {
      return calculator;
    }
    throw new IllegalArgumentException("Could not get calculator for " + name);
  }

  private  StatisticsCalculatorFactory();

}