public class InstancesHeader
extends weka.core.Instances
ARFF_DATA, ARFF_RELATION, FILE_EXTENSION, m_Attributes, m_ClassIndex, m_Instances, m_Lines, m_RelationName, SERIALIZED_OBJ_FILE_EXTENSION
modCount
Constructor and Description |
---|
InstancesHeader(weka.core.Instances i) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(weka.core.Instance i) |
static String |
getAttributeNameString(InstancesHeader context,
int attIndex) |
static String |
getClassLabelString(InstancesHeader context,
int classLabelIndex) |
static String |
getClassNameString(InstancesHeader context) |
static String |
getNominalValueString(InstancesHeader context,
int attIndex,
int valIndex) |
static String |
getNumericValueString(InstancesHeader context,
int attIndex,
double value) |
boolean |
readInstance(Reader r) |
add, attribute, attribute, attributeStats, attributeToDoubleArray, checkForAttributeType, checkForStringAttributes, checkInstance, classAttribute, classIndex, compactify, copyInstances, delete, delete, deleteAttributeAt, deleteAttributeType, deleteStringAttributes, deleteWithMissing, deleteWithMissing, deleteWithMissingClass, enumerateAttributes, enumerateInstances, equalHeaders, equalHeadersMsg, firstInstance, freshAttributeInfo, get, getRandomNumberGenerator, getRevision, initialize, insertAttributeAt, instance, instancesAndWeights, kthSmallestValue, kthSmallestValue, lastInstance, main, meanOrMode, meanOrMode, mergeInstances, numAttributes, numClasses, numDistinctValues, numDistinctValues, numInstances, randomize, relationName, remove, renameAttribute, renameAttribute, renameAttributeValue, renameAttributeValue, replaceAttributeAt, resample, resampleWithWeights, resampleWithWeights, resampleWithWeights, resampleWithWeights, resampleWithWeights, resampleWithWeights, resampleWithWeights, set, setClass, setClassIndex, setRelationName, size, sort, sort, stratify, stratStep, stringFreeStructure, stringWithoutHeader, sumOfWeights, swap, test, testCV, toString, toSummaryString, trainCV, trainCV, variance, variance
addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
public boolean add(weka.core.Instance i)
add
in interface Collection<weka.core.Instance>
add
in interface List<weka.core.Instance>
add
in class weka.core.Instances
public boolean readInstance(Reader r) throws IOException
readInstance
in class weka.core.Instances
IOException
public static String getClassNameString(InstancesHeader context)
public static String getClassLabelString(InstancesHeader context, int classLabelIndex)
public static String getAttributeNameString(InstancesHeader context, int attIndex)
public static String getNominalValueString(InstancesHeader context, int attIndex, int valIndex)
public static String getNumericValueString(InstancesHeader context, int attIndex, double value)
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.