|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.computing.kmeans.DataSet
public class DataSet
Represents the dataset of samples. A container for Data objects.
| Field Summary | |
|---|---|
protected java.util.Vector |
dataset
The coordinates in this dataset |
| Constructor Summary | |
|---|---|
DataSet(java.lang.String filename)
Constructs a new dataset by reading a description from a file. |
|
DataSet(java.util.Vector collection)
Constructs a dataset from a vector of samples. |
|
| Method Summary | |
|---|---|
int |
dimension()
Access the dimension of the samples in the dataset. |
java.util.Iterator |
iterator()
Get an iterator for this dataset. |
int |
numSamples()
Access the number of samples in the dataset. |
java.util.Iterator |
randomIterator()
Get an iterator for this dataset that iterates in a random order. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Vector dataset
| Constructor Detail |
|---|
public DataSet(java.util.Vector collection)
collection - The collection of samples in this dataset.
public DataSet(java.lang.String filename)
throws java.io.FileNotFoundException,
java.io.IOException,
java.lang.Exception
filename - The filename containing the dataset.
java.io.FileNotFoundException
java.io.IOException
java.lang.Exception| Method Detail |
|---|
public int numSamples()
public int dimension()
public java.util.Iterator iterator()
public java.util.Iterator randomIterator()
public 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 | ||||||||