public float[][] computeSimilarityMatrix(int maxPermutationCount,
			IndexPermutator permutator) {
		int[][] permSimilarities = generateInstanceSimilarityMatrix(
				maxPermutationCount, permutator);
		float[][] similarityMatrix = new float[instances.length][instances.length];
		for (int i = 0; i < instances.length; ++i) {
			for (int j = 0; j < instances.length; ++j) {
				similarityMatrix[i][j] = computeSimilarity(i, j,
						permSimilarities);
			}
		}
		return similarityMatrix;
	}