|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.core.Instances
weka.classifiers.trees.adtree.ReferenceInstances
public class ReferenceInstances
Simple class that extends the Instances class making it possible to create subsets of instances that reference their source set. Is used by ADTree to make reweighting of instances easy to manage.
Field Summary |
---|
Fields inherited from class weka.core.Instances |
---|
ARFF_DATA, ARFF_RELATION, FILE_EXTENSION, SERIALIZED_OBJ_FILE_EXTENSION |
Constructor Summary | |
---|---|
ReferenceInstances(Instances dataset,
int capacity)
Creates an empty set of instances. |
Method Summary | |
---|---|
void |
addReference(Instance instance)
Adds one instance reference to the end of the set. |
java.lang.String |
getRevision()
Returns the revision string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReferenceInstances(Instances dataset, int capacity)
dataset
- the instances to get the header information fromcapacity
- the initial storage capacity of the setMethod Detail |
---|
public final void addReference(Instance instance)
instance
- the instance to be addedpublic java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class Instances
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |