|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.statcato.utils.NumDataset
public class NumDataset
A class that represents a dataset of double values. The dataset consists of vectors of double values corresponding to distinct category labels.
Constructor Summary | |
---|---|
NumDataset()
Constructor. |
Method Summary | |
---|---|
void |
add(java.util.Vector<java.lang.Double> data,
java.lang.String label)
Adds the given data vector with the given label to the dataset. |
void |
addDataVectorWithByVarLabels(java.util.Vector<java.lang.Double> data,
java.util.Vector byLabels)
Add the data values with the corresponding labels. |
java.util.Vector<java.lang.Double> |
get(java.lang.String label)
Returns the data vector corresponding to the given label. |
java.util.Vector<java.lang.String> |
getLabels()
Returns all the labels as a vector of string values. |
java.util.Vector<java.util.Vector<java.lang.Double>> |
getValues()
Returns all the data values as vectors of double-value vector. |
int |
size()
Returns the size of the dataset (number of categories). |
java.lang.String |
toString()
Returns the labels of the sets of data values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NumDataset()
Method Detail |
---|
public void add(java.util.Vector<java.lang.Double> data, java.lang.String label)
data
- vector of double valueslabel
- String data labelpublic void addDataVectorWithByVarLabels(java.util.Vector<java.lang.Double> data, java.util.Vector byLabels)
data
- vector of double valuesbyLabels
- vector of labels corresponding to the double valuespublic java.util.Vector<java.lang.Double> get(java.lang.String label)
label
- String data label
public int size()
public java.util.Vector<java.util.Vector<java.lang.Double>> getValues()
public java.util.Vector<java.lang.String> getLabels()
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 |