public double test(int N1[], int N2[], double weight[]) {
		// Sanity checks
		if (N1.length != N2.length) throw new RuntimeException("Row length do not match: " + N1.length + " != " + N2.length);
		if (N1.length != weight.length) throw new RuntimeException("Weight length does not match data rows length: " + N1.length + " != " + weight.length);

		// Calculate T value
		double t = t(N1, N2, weight);
		double var = var(N1, N2, weight);

		return t / Math.sqrt(var);
	}