public class ArffInstance
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.ArrayList<ArffAttribute> |
attrs
Attributes of the instance
|
Constructor and Description |
---|
ArffInstance(java.util.ArrayList<java.lang.String> instanceData)
Initializes a newly created
ArffInstance object
with instance data. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTypeByIndex(int idx)
Get attribute type by index.
|
java.lang.Object |
getValueByAttrName(java.lang.String attrName)
Get data value by the attribute name.
|
java.lang.Object |
getValueByIndex(int idx)
Get data value by index.
|
public static java.util.ArrayList<ArffAttribute> attrs
public ArffInstance(java.util.ArrayList<java.lang.String> instanceData)
ArffInstance
object
with instance data.instanceData
- data of the instancepublic java.lang.Object getValueByAttrName(java.lang.String attrName) throws LibrecException
attrName
- name of the attributeLibrecException
- if attrName is invalidpublic java.lang.Object getValueByIndex(int idx)
idx
- index of the data.public java.lang.String getTypeByIndex(int idx)
idx
- index of the attributeCopyright © 2017. All Rights Reserved.