InputGeneratorXOR Class Reference

A generator that generates inputs and corresponding outputs to the XOR boolean funciton. More...

#include <InputGeneratorXOR.hpp>

Inheritance diagram for InputGeneratorXOR:

IInputGenerator List of all members.

Public Member Functions

 InputGeneratorXOR ()
virtual Vector GetInput ()
virtual Vector GetOutput ()
virtual Vector const & GetLastInput () const
virtual unsigned int GetDimension () const
virtual GeneratorType GetGeneratorType () const

Protected Attributes

unsigned int m_dimension
double m_min
double m_max
Vector m_input

Detailed Description

A generator that generates inputs and corresponding outputs to the XOR boolean funciton.


Constructor & Destructor Documentation

InputGeneratorXOR  ) 
 


Member Function Documentation

virtual Vector GetInput  )  [virtual]
 

Returns:
a 2-dim vector representing the xor boolean funtion.

Implements IInputGenerator.

virtual Vector GetOutput  )  [virtual]
 

Returns:
the 1-dim class for the current input, 0 or 1

Reimplemented from IInputGenerator.

virtual Vector const& GetLastInput  )  const [virtual]
 

Returns:
The Latest generated Input Vector.

Implements IInputGenerator.

virtual unsigned int GetDimension  )  const [virtual]
 

Returns:
The dimension, which is deciced at construction time.

Implements IInputGenerator.

virtual GeneratorType GetGeneratorType  )  const [virtual]
 

Returns:
ClassesGenerator, since this is a generator for classification

Implements IInputGenerator.


Member Data Documentation

unsigned int m_dimension [protected]
 

double m_min [protected]
 

double m_max [protected]
 

Vector m_input [protected]
 


Generated on Mon Mar 22 16:40:49 2004 for GNG_GL by doxygen 1.3.6