public interface InstanceData extends Serializable
Modifier and Type | Method and Description |
---|---|
InstanceData |
copy()
Produces a shallow copy of this instance data.
|
void |
deleteAttributeAt(int index)
Deletes an attribute.
|
int |
index(int i)
Index.
|
void |
insertAttributeAt(int index)
Inserts an attribute.
|
boolean |
isMissing(int instAttIndex)
Checks if is missing.
|
boolean |
isMissingSparse(int p1)
Checks if is missing sparse.
|
int |
numAttributes()
Num attributes.
|
int |
numValues()
Num values.
|
void |
setValue(int m_numAttributes,
double d)
Sets the value.
|
double[] |
toDoubleArray()
To double array.
|
double |
value(int instAttIndex)
Value.
|
double |
valueSparse(int i)
Value sparse.
|
int numAttributes()
double value(int instAttIndex)
instAttIndex
- the inst att indexboolean isMissing(int instAttIndex)
instAttIndex
- the inst att indexint numValues()
int index(int i)
i
- the idouble valueSparse(int i)
i
- the iboolean isMissingSparse(int p1)
p1
- the p1double[] toDoubleArray()
void setValue(int m_numAttributes, double d)
m_numAttributes
- the m_num attributesd
- the dvoid deleteAttributeAt(int index)
index
- the indesvoid insertAttributeAt(int index)
index
- the indesInstanceData copy()
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.