class StatisticsMath {

	public static <T extends Number> double variance(final List<T> values)
	{
		double mu = mean(values);
		List<Number> val2 = new ArrayList<>(values.size());
		for (Number f : values)
		{
			double diff = f.doubleValue() - mu;
			val2.add(diff * diff);
		}
		return mean(val2);
	}

	@SuppressWarnings("unused") private  StatisticsMath();

}