All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.classifiers.adtree.ReferenceInstances

java.lang.Object
    |
    +----weka.core.Instances
            |
            +----weka.classifiers.adtree.ReferenceInstances

public class ReferenceInstances
extends Instances
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.

Version:
$Revision: 1.1 $
Author:
Richard Kirkby (rkirkby@cs.waikato.ac.nz)

Constructor Index

 o ReferenceInstances(Instances, int)
Creates an empty set of instances.

Method Index

 o addReference(Instance)
Adds one instance reference to the end of the set.

Constructor Detail

 o ReferenceInstances
public ReferenceInstances(Instances dataset,
                          int capacity)
          Creates an empty set of instances.
Parameters:
dataset - the instances to get the header information from
capacity - the initial storage capacity of the set

Method Detail

 o addReference
public final void addReference(Instance instance)
          Adds one instance reference to the end of the set. Does not copy instance before it is added. Increases the size of the dataset if it is not large enough. Does not check if the instance is compatible with the dataset.
Parameters:
instance - the instance to be added

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home