Klasse Data
java.lang.Object
org.deidentifier.arx.framework.data.Data
- Alle implementierten Schnittstellen:
Serializable,Cloneable
Encodes a data object consisting of a dictionary encoded two-dimensional
array, an associated dictionary, a header and a mapping to the columns in the
input data set.
- Siehe auch:
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final intThe outliers mask.static final intThe inverse outliers mask. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungclone()static DatacreateProjection(DataMatrix data, String[] header, int[] columns, Dictionary dictionary) Creates an object which projects the given data onto the given set of columnsstatic DatacreateWrapper(DataMatrix data, String[] header, int[] columns, Dictionary dictionary) Creates an object which simply encapsulates the provided objectsgetArray()Returns the data array.int[]Returns the set of columns from the input data set stored in this object.intReturns the number of rows.Returns the dictionary.String[]Returns the header.intgetIndexOf(String attribute) Returns the index of the given attribute.getSubsetInstance(RowSet rowset) Returns a new instance that is projected onto the given subsetbooleanisEmpty()Returns whether this object is empty
-
Felddetails
-
OUTLIER_MASK
public static final int OUTLIER_MASKThe outliers mask.- Siehe auch:
-
REMOVE_OUTLIER_MASK
public static final int REMOVE_OUTLIER_MASKThe inverse outliers mask.- Siehe auch:
-
-
Methodendetails
-
createProjection
public static Data createProjection(DataMatrix data, String[] header, int[] columns, Dictionary dictionary) Creates an object which projects the given data onto the given set of columns- Parameter:
data-header-columns-dictionary-- Gibt zurück:
-
createWrapper
public static Data createWrapper(DataMatrix data, String[] header, int[] columns, Dictionary dictionary) Creates an object which simply encapsulates the provided objects- Parameter:
data-header-columns-dictionary-- Gibt zurück:
-
clone
-
getArray
Returns the data array.- Gibt zurück:
-
getColumns
public int[] getColumns()Returns the set of columns from the input data set stored in this object.- Gibt zurück:
-
getDataLength
public int getDataLength()Returns the number of rows.- Gibt zurück:
- the data length
-
getDictionary
Returns the dictionary.- Gibt zurück:
-
getHeader
Returns the header.- Gibt zurück:
-
getIndexOf
Returns the index of the given attribute. Returns -1 if the attribute is not contained.- Parameter:
attribute-- Gibt zurück:
-
getSubsetInstance
Returns a new instance that is projected onto the given subset- Parameter:
rowset-- Gibt zurück:
-
isEmpty
public boolean isEmpty()Returns whether this object is empty- Gibt zurück:
-