public class InitialKPointsGenerator
extends java.lang.Object
| Constructor and Description |
|---|
InitialKPointsGenerator(PointWritable[] points)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
getInitialKPoints(int k)
Gets k points from the initial array of points
|
public InitialKPointsGenerator(PointWritable[] points)
points - an array of sampled points from the input data set
public double[] getInitialKPoints(int k)
throws java.io.IOException,
java.lang.InterruptedException
k - the number of points to be returnedjava.io.IOExceptionjava.lang.InterruptedExceptionCopyright © 2017 Oracle and/or its affiliates. All Rights Reserved.