public double[][] calculK(){
		int[] vCard = new int[k];
		double[][] S2 = new double[k][nombreDeClasses];
		for(int i = 1; i < k; i++)
		{
			int card = OutilsMatriciels.nbNonNulsColonne(S,i,nombreDeClasses);
			double fact = 1/(double)(card);
			vCard[i] = card;
			for(int j = 0; j < nombreDeClasses; j++) //Pour tous les sous-ensembles de Omega
				{
					if(S[j][i] != 0) S2[i][j] = fact*S[j][i];
				}
		}
		K = OutilsMatriciels.produitMat(S2, S);
	
		for(int i = 0; i < k; i++){
			/*K[i][i] = 1;
			for (int j = 0; j < i; j++)
			{
				K[j][i] = 0;
			}*/
			for (int j = i + 1; j < k; j++)
			{
				if(vCard[i] >= vCard[j]) K[j][i] = 0;
			}
		}
		return K;
	}