public class DataObject extends Object
Constructor and Description |
---|
DataObject(int idCounter,
weka.core.Instance inst)
Standard constructor for
DataObject . |
Modifier and Type | Method and Description |
---|---|
int |
getClassLabel()
Return the label for the
DataObject . |
double[] |
getFeatures()
Returns the features (label attribute excluded).
|
int |
getId()
Returns the id for the
DataObject . |
weka.core.Instance |
getInstance()
Return the
Instance of the DataObject . |
int |
getNrOfDimensions()
Returns the number of features (label attribute excluded).
|
boolean |
isOutiler() |
void |
setId(int id) |
void |
setOutiler(boolean val) |
String |
toString()
Returns a
String representation of the point. |
public DataObject(int idCounter, weka.core.Instance inst)
DataObject
.idCounter
- The id for the DataObject
.features
- The feature as a double[]
classLabel
- The label id for the DataObject
.public double[] getFeatures()
double[]
with the features.public int getId()
DataObject
.int
with the id of the DataObject
.public void setId(int id)
public int getClassLabel()
DataObject
.int
which codes the label.public weka.core.Instance getInstance()
Instance
of the DataObject
.Instance
.public int getNrOfDimensions()
public String toString()
String
representation of the point. The features are written comma
separated between parenthesis and the label id is written after the closing parenthesis
surrounded by squared brackets.public void setOutiler(boolean val)
public boolean isOutiler()
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.