|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.labs.minion.clustering.ClusterStatisticsImpl
public class ClusterStatisticsImpl
An implementation of the cluster statistics interface.
| Constructor Summary | |
|---|---|
ClusterStatisticsImpl()
|
|
| Method Summary | |
|---|---|
void |
add(double d)
|
double |
mean()
Calculates the mean distance of the cluster elements from the cluster centroid. |
int |
size()
Gets the number of elements in the cluster. |
java.lang.String |
toString()
|
double |
variance()
Calculates the variance of the distance of the cluster elements from the cluster centroid. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClusterStatisticsImpl()
| Method Detail |
|---|
public void add(double d)
public int size()
ClusterStatistics
size in interface ClusterStatisticspublic double mean()
mean in interface ClusterStatisticspublic double variance()
variance in interface ClusterStatisticspublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||