103104105106107108109110111112113
IDoubleArray current = it.next(); // do we have this index? if (Arrays.binarySearch(sortedIndexes, i) >= 0) { clusterCenters.add(current.copy()); } this.assignments.add(-1);
142143144145146147148149150151152
// make sure matrix is nonnegative ensureNonnegativeElements(CC); // compute coarse-grained transition matrix this.Tcoarse = CC.copy(); alg.normalizeRows(this.Tcoarse, 1); } public IDoubleArray getMemberships() {