|
|||||||||||
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
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 |
FILE_EXTENSION, m_Attributes, m_ClassIndex, m_IndicesBuffer, m_Instances, m_RelationName, m_ValueBuffer |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, 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 added
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |