Package example.kmeans
Class KMeans
- java.lang.Object
-
- ibis.constellation.Activity
-
- example.kmeans.KMeans
-
- All Implemented Interfaces:
java.io.Serializable
public class KMeans extends Activity
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup(Constellation cons)
static float[]
generateRandom(int sz, long seed)
int
initialize(Constellation cons)
KMeansResult
kMeansCluster(Constellation cons, float[] centers, int jobNo, boolean gpu)
static void
main(java.lang.String[] args)
int
process(Constellation cons, Event arg0)
-
Methods inherited from class ibis.constellation.Activity
expectsEvents, getContext, identifier, mayBeStolen, setIdentifier
-
-
-
-
Field Detail
-
logger
public static org.slf4j.Logger logger
-
THRESHOLD
public static final float THRESHOLD
- See Also:
- Constant Field Values
-
MAX_ITERATIONS
public static final int MAX_ITERATIONS
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public int initialize(Constellation cons)
- Specified by:
initialize
in classActivity
-
cleanup
public void cleanup(Constellation cons)
-
process
public int process(Constellation cons, Event arg0)
-
kMeansCluster
public KMeansResult kMeansCluster(Constellation cons, float[] centers, int jobNo, boolean gpu)
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
- Throws:
java.lang.Exception
-
generateRandom
public static float[] generateRandom(int sz, long seed)
-
-