|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - The type which can be read and written by this clusterDATATYPE - the primative datatype which represents a centroid of this clusterpublic interface Cluster<T,DATATYPE>
| Field Summary |
|---|
| Fields inherited from interface org.openimaj.ml.clustering.ReadWriteableCluster |
|---|
CLUSTER_HEADER |
| Method Summary | |
|---|---|
DATATYPE[] |
getClusters()
Utility function useful for testing. |
int |
getNDims()
Get data dimensionality |
int |
getNumberClusters()
Get the number of centers K |
void |
optimize(boolean exact)
Prepare the cluster for pushing |
int |
push_one(DATATYPE data)
Project one datum to clusters |
int[] |
push_one(DATATYPE data,
int numNeighbours)
Project one datum to clusters |
int[] |
push(DATATYPE[] data)
Project data to clusters. |
int[][] |
push(DATATYPE[] data,
int numNeighbours)
Project data to clusters. |
int |
train(DataSource<DATATYPE> data)
Train clusters with a data source, can be more efficient |
int |
train(DATATYPE[] data)
Train clusters |
| Methods inherited from interface org.openimaj.io.ReadableASCII |
|---|
asciiHeader, readASCII |
| Methods inherited from interface org.openimaj.io.ReadableBinary |
|---|
binaryHeader, readBinary |
| Methods inherited from interface org.openimaj.io.WriteableASCII |
|---|
asciiHeader, writeASCII |
| Methods inherited from interface org.openimaj.io.WriteableBinary |
|---|
binaryHeader, writeBinary |
| Method Detail |
|---|
int train(DATATYPE[] data)
data - data.
int train(DataSource<DATATYPE> data)
data - data.
int getNDims()
int getNumberClusters()
void optimize(boolean exact)
exact - TODOint[] push(DATATYPE[] data)
data - data.
int push_one(DATATYPE data)
data - datum to project.
int[][] push(DATATYPE[] data,
int numNeighbours)
data - data.numNeighbours - number of neighboring clusters to return also. When set to 1 this is equivalent to Cluster#push(DATATYPE[])
int[] push_one(DATATYPE data,
int numNeighbours)
data - datum to project.numNeighbours - number of neighbouring clusters to return also. When set to 1 this is equivalent to push_one(Object)
DATATYPE[] getClusters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||