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 setpublic double[] getInitialKPoints(int k) throws java.io.IOException, java.lang.InterruptedException
k
- the number of points to be returnedjava.io.IOException
java.lang.InterruptedException
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.