|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.computing.kmeans.DataSet
org.jscience.computing.kmeans.Cluster
public class Cluster
Represents a collection of samples in a cluster.
| Field Summary |
|---|
| Fields inherited from class org.jscience.computing.kmeans.DataSet |
|---|
dataset |
| Constructor Summary | |
|---|---|
Cluster(java.util.Vector collection)
Generates a cluster from given set vector of examples. |
|
| Method Summary | |
|---|---|
Coordinate |
average()
|
double |
likelihood(Coordinate sample)
Finds the loglikelihood of this sample given the cluster. |
double |
standardDeviation(DataSet dataset,
int axis)
Get the standard deviation of points in given dataset given the mean of this cluster. |
double |
standardDeviation(int axis)
Get the standard deviation of this cluster in a given axis. |
| Methods inherited from class org.jscience.computing.kmeans.DataSet |
|---|
dimension, iterator, numSamples, randomIterator, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Cluster(java.util.Vector collection)
collection - The collection of samples in this cluster.dimension - The dimension of this collection| Method Detail |
|---|
public Coordinate average()
public double standardDeviation(int axis)
axis - The axis (0<=x
public double standardDeviation(DataSet dataset,
int axis)
dataset - The dataset to compare.axis - The axis (0<=xpublic double likelihood(Coordinate sample)
sample - The sample to test against this cluster.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||