GEP::dataSample< InputType, OutputType > Class Template Reference

a structure used in learning process; represents a learning sample Contains vector of input and an output - inputs are set as Chromosome inputs and the output is compared with the output of the Chromosome in the Individual. paramSample is templated over the value type and the type of structure holding additional data. More...

#include <DataStructures.h>

List of all members.

Public Types

typedef InputType InType
typedef OutputType OutType

Public Member Functions

 dataSample (const std::vector< InputType > &in=std::vector< InputType >(), const OutputType &out=OutputType(0))

Public Attributes

std::vector< InputType > input
OutputType output

Detailed Description

template<class InputType, class OutputType>
class GEP::dataSample< InputType, OutputType >

a structure used in learning process; represents a learning sample Contains vector of input and an output - inputs are set as Chromosome inputs and the output is compared with the output of the Chromosome in the Individual. paramSample is templated over the value type and the type of structure holding additional data.


Member Typedef Documentation

template<class InputType , class OutputType >
typedef InputType GEP::dataSample< InputType, OutputType >::InType
template<class InputType , class OutputType >
typedef OutputType GEP::dataSample< InputType, OutputType >::OutType

Constructor & Destructor Documentation

template<class InputType , class OutputType >
GEP::dataSample< InputType, OutputType >::dataSample ( const std::vector< InputType > &  in = std::vector<InputType>(),
const OutputType &  out = OutputType(0) 
) [inline]

Member Data Documentation

template<class InputType , class OutputType >
std::vector<InputType> GEP::dataSample< InputType, OutputType >::input

Vector of inputs

template<class InputType , class OutputType >
OutputType GEP::dataSample< InputType, OutputType >::output

Output coupled with the inputs


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

Generated on Fri Dec 11 22:28:17 2009 for LibGEP by  doxygen 1.6.1