public float[] getEquation(float p[][], int c[]) {
		float sum = 0;
		float avg;
		float[] esum = new float[c.length];
		float temp = 0;

		for (int i = 0; i < c.length; i++) {
			if (c[i] < 2)
				esum[i] = 0;
			else {
				for (int j = 0; j < p[i].length; j++)
					sum = sum + p[i][j];
				avg = sum / c[i];
				for (int j = 0; j < p[i].length; j++) {
					temp = temp + (p[i][j] - avg) * (p[i][j] - avg);
				}
				esum[i] = temp / (c[i] - 1); // calculate variance

			}
		}
		return esum;

	}