public class Data
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
OUTLIER_MASK
The outliers mask.
|
static int |
REMOVE_OUTLIER_MASK
The inverse outliers mask.
|
Modifier and Type | Method and Description |
---|---|
Data |
clone() |
static Data |
createProjection(DataMatrix data,
java.lang.String[] header,
int[] columns,
Dictionary dictionary)
Creates an object which projects the given data onto the given set of columns
|
static Data |
createWrapper(DataMatrix data,
java.lang.String[] header,
int[] columns,
Dictionary dictionary)
Creates an object which simply encapsulates the provided objects
|
DataMatrix |
getArray()
Returns the data array.
|
int[] |
getColumns()
Returns the set of columns from the input data set stored in this object.
|
int |
getDataLength()
Returns the number of rows.
|
Dictionary |
getDictionary()
Returns the dictionary.
|
java.lang.String[] |
getHeader()
Returns the header.
|
int |
getIndexOf(java.lang.String attribute)
Returns the index of the given attribute.
|
Data |
getSubsetInstance(RowSet rowset)
Returns a new instance that is projected onto the given subset
|
boolean |
isEmpty()
Returns whether this object is empty
|
public static final int OUTLIER_MASK
public static final int REMOVE_OUTLIER_MASK
public static Data createProjection(DataMatrix data, java.lang.String[] header, int[] columns, Dictionary dictionary)
data
- header
- columns
- dictionary
- public static Data createWrapper(DataMatrix data, java.lang.String[] header, int[] columns, Dictionary dictionary)
data
- header
- columns
- dictionary
- public Data clone()
clone
in class java.lang.Object
public DataMatrix getArray()
public int[] getColumns()
public int getDataLength()
public Dictionary getDictionary()
public java.lang.String[] getHeader()
public int getIndexOf(java.lang.String attribute)
attribute
- public Data getSubsetInstance(RowSet rowset)
rowset
- public boolean isEmpty()