public class IInstances
extends weka.core.Instances
| Constructor | Description |
|---|---|
IInstances(java.io.Reader reader) |
Reads an ARFF file from a reader, and assigns a weight of one to each
instance.
|
IInstances(java.lang.String name,
weka.core.FastVector attInfo,
int capacity) |
Creates an empty set of instances.
|
IInstances(weka.core.Instances dataset) |
Constructor copying all instances and references to the header
information from the given set of instances.
|
IInstances(weka.core.Instances dataset,
int capacity) |
Constructor creating an empty set of instances.
|
IInstances(weka.core.Instances source,
int first,
int toCopy) |
Creates a new set of instances by copying a subset of another set.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(weka.core.Instance instance) |
Adds one instance to the end of the set.
|
attribute, attribute, attributeStats, attributeToDoubleArray, checkForAttributeType, checkForStringAttributes, checkInstance, classAttribute, classIndex, compactify, delete, delete, deleteAttributeAt, deleteAttributeType, deleteStringAttributes, deleteWithMissing, deleteWithMissing, deleteWithMissingClass, enumerateAttributes, enumerateInstances, equalHeaders, firstInstance, getRandomNumberGenerator, getRevision, insertAttributeAt, instance, kthSmallestValue, kthSmallestValue, lastInstance, main, meanOrMode, meanOrMode, mergeInstances, numAttributes, numClasses, numDistinctValues, numDistinctValues, numInstances, randomize, randomizeAttribute, readInstance, relationName, renameAttribute, renameAttribute, renameAttributeValue, renameAttributeValue, resample, resampleWithWeights, resampleWithWeights, setClass, setClassIndex, setRelationName, sort, sort, stratify, stringFreeStructure, sumOfWeights, swap, test, testCV, toString, toSummaryString, trainCV, trainCV, undoRandomizeAttribute, variance, variancepublic IInstances(java.io.Reader reader)
throws java.io.IOException
reader - the readerjava.io.IOException - if the ARFF file is not read successfullypublic IInstances(weka.core.Instances dataset)
dataset - the set to be copiedpublic IInstances(weka.core.Instances dataset,
int capacity)
dataset - the instances from which the header information is to be takencapacity - the capacity of the new datasetpublic IInstances(weka.core.Instances source,
int first,
int toCopy)
source - the set of instances from which a subset is to be createdfirst - the index of the first instance to be copiedtoCopy - the number of instances to be copiedjava.lang.IllegalArgumentException - if first and toCopy are out of rangepublic IInstances(java.lang.String name,
weka.core.FastVector attInfo,
int capacity)
name - the name of the relationattInfo - the attribute informationcapacity - the capacity of the setpublic void add(weka.core.Instance instance)
add in class weka.core.Instancesinstance - the instance to be added