ViewSet Class Reference

ViewSets are a generalization of view objects, bundling several of them together. More...

#include <ViewSet.h>

Inherits NamedObject.

Inheritance diagram for ViewSet:

Inheritance graph
[legend]
Collaboration diagram for ViewSet:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ViewSet (const char *name)
 Creates an empty ViewSet object, with Views to be added later.
 ViewSet (const char *name, Data *data, int numToGen, int numOrderings)
 Creates a ViewSet and generates a set of views automatically.
void addView (View *v)
 Adds a View object to an existing ViewSet.
int getNumViews ()
 Accessor method.
ViewgetView (int i)
 Returns the requested View object.

Friends

ostream & operator<< (ostream &s, ViewSet &p)
 Lists the contents of each of the Views in the ViewSet.

Detailed Description

ViewSets are a generalization of view objects, bundling several of them together.

This simplifies both training or testing on more than a single subset of the data at once, and the implementation of cross-validation protocols.


Constructor & Destructor Documentation

ViewSet::ViewSet const char *  name  ) 
 

Creates an empty ViewSet object, with Views to be added later.

Parameters:
name The name by which to refer to the object in logged messages.

ViewSet::ViewSet const char *  name,
Data data,
int  numToGen,
int  numOrderings
 

Creates a ViewSet and generates a set of views automatically.

The entries in the data set are partitioned among each of the numToGen View objects, in order, and each View object stores numOrderings orderings. This is useful for example for doing a cross-validating train/protocol, with voting classifiers.

Parameters:
name The name by which to refer to the object in logged messages.
data The data set that the ViewSet's Views refer to.
numToGen The number of View objects to generate.
numOrderings The number of orderings to generate for each View
Exceptions:
MsgException If numToGen <= 0.


Member Function Documentation

void ViewSet::addView View v  ) 
 

Adds a View object to an existing ViewSet.

Provides more fine-grained control over the contents of the ViewSet.

Parameters:
v The View object to add.

int ViewSet::getNumViews  ) 
 

Accessor method.

Returns:
The number of Views stored by the ViewSet.

View * ViewSet::getView int  i  ) 
 

Returns the requested View object.

Parameters:
i The index of the View to retrieve.
Returns:
The requested View object.
Exceptions:
MsgException If i is out of range.


Friends And Related Function Documentation

ostream& operator<< ostream &  s,
ViewSet p
[friend]
 

Lists the contents of each of the Views in the ViewSet.

Parameters:
s The output stream to send the listing to.
p The ViewSet object to examine.


The documentation for this class was generated from the following files:
Generated on Tue Dec 13 11:00:28 2005 for Classer by  doxygen 1.4.3