public void NormalisePatterns()
    {
	for (int j = 0; j < attributes; j++)
	{
	    double sum = 0;

	    for (int i = 0; i < data.size(); i++)
		sum += data.get(i)[j];

	    double average = sum / data.size();

	    for (int i = 0; i < data.size(); i++)
		data.get(i)[j] = data.get(i)[j] / average;
	}
    }