public class Cluster extends Object
Constructor and Description |
---|
Cluster() |
Modifier and Type | Method and Description |
---|---|
void |
assignVector(KVector vector)
Assignes vector to this cluster.
|
boolean |
equals(Object obj)
Returns true if two clusters have same centroid
|
double[] |
getAvgSum()
Calculate and return avg sum vector for all vectors
|
KVector |
getCentroid() |
List<KVector> |
getPoints() |
int |
hashCode() |
void |
removePoint(KVector point) |
void |
setCentroid(KVector centroid) |
int |
size()
Returns number of vectors assigned to this cluster.
|
public KVector getCentroid()
public void setCentroid(KVector centroid)
public void removePoint(KVector point)
public double[] getAvgSum()
public boolean equals(Object obj)
public void assignVector(KVector vector)
vector
- vector to assignpublic int size()
Copyright © 2019 Neuroph Project. All rights reserved.