Public Member Functions | Private Attributes | Friends | List of all members
Examples Class Reference

#include <examples.h>

Inheritance diagram for Examples:

Public Member Functions

 Examples ()
 
 Examples (const Attributes &attributes) throw ( logic_error )
 
void parse (istream &in) throw ( logic_error )
 
void setAttributes (const Attributes &attributes) throw ( logic_error )
 

Private Attributes

Attributes attributes
 

Friends

ostream & operator<< (ostream &out, const Examples &e)
 

Detailed Description

Stores examples for data sets for machine learning.

Author
Mark Maloof
Version
1.0, 9/19/06

Constructor & Destructor Documentation

Examples::Examples ( )

Default constructor.

Examples::Examples ( const Attributes attributes)
throw (logic_error
)

Explicit constructor.

Parameters
attributesthe attributes for this set of examples
Exceptions
logic_errorif a type mismatch occurs

Member Function Documentation

void Examples::parse ( istream &  in)
throw (logic_error
)

Given the attributes structure, parses the tokens in the input stream, makes Examples, and adds them to this Examples object.

Parameters
inan input stream containing the examples' tokens
Exceptions
logic_errorif a parse error occurs
void Examples::setAttributes ( const Attributes attributes)
throw (logic_error
)

Explicit constructor.

Parameters
attributesthe attributes for this set of examples
Exceptions
logic_errorif a type mismatch occurs

Friends And Related Function Documentation

ostream& operator<< ( ostream &  out,
const Examples e 
)
friend

Writes the specified attribute to the output stream and returns it.

Parameters
outthe output stream for writing
ethe specified example for writing
Returns
the modified output stream

Member Data Documentation

Attributes Examples::attributes
private

the attributes structure for these examples


The documentation for this class was generated from the following files: