int[] subcluster = sampleFromArray(instances, random, 2); int[] cluster1 = new int[]{subcluster[random.nextInt(subcluster.length)]}; // Singleton. int[] cluster2 = new int[subcluster.length - 1]; labelj = random.nextInt(clustering.getNumClusters()); int[] ii = sampleFromArray(clustering.getIndicesWithLabel(labeli), random, 1); int[] ij = sampleFromArray(clustering.getIndicesWithLabel(labelj), random, 1);
int[] subcluster = sampleFromArray(instances, random, 2); int[] cluster1 = new int[]{subcluster[random.nextInt(subcluster.length)]}; // Singleton. int[] cluster2 = new int[subcluster.length - 1]; labelj = random.nextInt(clustering.getNumClusters()); int[] ii = sampleFromArray(clustering.getIndicesWithLabel(labeli), random, 1); int[] ij = sampleFromArray(clustering.getIndicesWithLabel(labelj), random, 1);
int[] subcluster = sampleFromArray(instances, random, 2); int[] cluster1 = new int[]{subcluster[random.nextInt(subcluster.length)]}; // Singleton. int[] cluster2 = new int[subcluster.length - 1]; labelj = random.nextInt(clustering.getNumClusters()); int[] ii = sampleFromArray(clustering.getIndicesWithLabel(labeli), random, 1); int[] ij = sampleFromArray(clustering.getIndicesWithLabel(labelj), random, 1);