public void fitToData (double[][] data) {
		min.clear();
		max.clear();

		int numberOfObjects = data.length;
		int numberOfDimensions = data[0].length;

		for (int i = 0; i < numberOfDimensions; i++) {
			add (data[0][i], data[0][i]);
		}

		for (int k = 1; k < numberOfObjects; k++) {
			for (int i = 0; i < numberOfDimensions; i++) {
				double objectKInDimensionI = data[k][i];
				if (objectKInDimensionI < min.get(i))
					min.set (i, objectKInDimensionI);
				if (objectKInDimensionI > max.get(i))
					max.set (i, objectKInDimensionI);
			}
		}
	}