}
return varSelLst;
}
private KMean loadKmeanResult(int numCluster, int varSelLst[], String fileName, ZipFile zf) throws IOException {
ClusteringInfosKMean curInfo[];
int i, j, k;
int curNumCluster;
MatrixOsservazioni m = waSession.getDataModel().getMatrix();
int numvars = m.getNumVariables();
int numoss = m.getNumOfObs();
DataInputStream dis = new DataInputStream(zf.getInputStream(new ZipEntry(fileName)));
short asseg[][];
//init result vector
curInfo = new ClusteringInfosKMean[numCluster];
asseg = new short[numCluster][numoss];
//System.out.println("Loading kMeans Results "+fileName);
for (i = 0; i < numCluster; i++) {
curNumCluster = dis.readInt();
curInfo[i] = new ClusteringInfosKMean(curNumCluster - 1, numvars);
curInfo[i].omsr = dis.readDouble();
curInfo[i].ratio = dis.readDouble();
for (k = 0; k < curNumCluster; k++) {
curInfo[i].infoCluster[k] = new ClusterInfoKMean(numvars);
curInfo[i].infoCluster[k].numOss = dis.readInt();