|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unibz.algorithms.types.DataSet
public class DataSet
An abstract representation of an arff file. This class represents the content of a dataset. It contains the dataset name, the attributes names and a list of values.
Field Summary | |
---|---|
private Row |
attributes
|
private java.util.ArrayList<Row> |
data
|
private java.lang.String |
name
|
private int |
skippedamount
|
Constructor Summary | |
---|---|
DataSet()
The constructor that initialize to null all class attributes |
Method Summary | |
---|---|
Row |
getAttributes()
It returns the attribute names |
java.util.ArrayList<Row> |
getData()
This method returns the data contained into the dataset |
java.lang.String |
getName()
This method returns the dataset name |
int |
getSkippedamount()
Returns the amount of skipped items |
void |
incSkippedamount()
Increments the number of skipped items |
java.lang.String |
print()
This method gives a verbose version of the dataset content USED ONLY FOT TESTING |
void |
setAttributes(java.lang.String s)
This method extract from a string the attribute name |
void |
setData(java.util.ArrayList<Row> data)
This is the setter for the dataset content |
void |
setName(java.lang.String s)
Setter for the dataset name |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String name
private Row attributes
private java.util.ArrayList<Row> data
private int skippedamount
Constructor Detail |
---|
public DataSet()
Method Detail |
---|
public int getSkippedamount()
public void incSkippedamount()
public void setName(java.lang.String s)
s
- dataset namepublic void setAttributes(java.lang.String s)
s
- retrieved from an arff filepublic void setData(java.util.ArrayList<Row> data)
data
- a list of row objectspublic Row getAttributes()
public java.util.ArrayList<Row> getData()
public java.lang.String getName()
public java.lang.String print()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |