class TimeSeriesUtil {

	public static double variance(final double[] t) {
		double mean = mean(t);
		double squaredDeviations = 0;
		for (int i = 0; i < t.length; i++) {
			squaredDeviations += (t[i] - mean) * (t[i] - mean);
		}
		return squaredDeviations / t.length;
	}

	private  TimeSeriesUtil();

}