public class FilteredSparseInstanceData extends SparseInstanceData
attributeValues, indexValues, numberAttributes
Constructor and Description |
---|
FilteredSparseInstanceData(double[] attributeValues,
int[] indexValues,
int numberAttributes)
Instantiates a new sparse instance data.
|
Modifier and Type | Method and Description |
---|---|
double |
value(int indexAttribute)
Value of the attribute in the indexAttribute position.
|
copy, deleteAttributeAt, getAttributeValues, getIndexValues, getNumberAttributes, index, insertAttributeAt, isMissing, isMissingSparse, locateIndex, numAttributes, numValues, setAttributeValues, setIndexValues, setNumberAttributes, setValue, toDoubleArray, valueSparse
public FilteredSparseInstanceData(double[] attributeValues, int[] indexValues, int numberAttributes)
attributeValues
- the attribute valuesindexValues
- the index valuesnumberAttributes
- the number attributespublic double value(int indexAttribute)
value
in interface InstanceData
value
in class SparseInstanceData
indexAttribute
- the index attributeCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.