class ConfusionMatrix {

	public static double calculateMatthewsCorrelationCoefficient(int tp, int tn, int fp, int fn) {
		double denominator = sqrt(tp + fp) * sqrt(tp + fn) * sqrt(tn + fp) * sqrt(tn + fn);
		long numerator = (long) tp * tn - (long) fp * fn;
		return denominator != 0 ? numerator / denominator : 0;
	}

	public  ConfusionMatrix();

}