LoveBrains  1.0.0
Public Member Functions | List of all members
GANN::GANN Class Reference

Define a new object called "GANN" for Genetic Artificial Neural Network that inherit of the interface IDNA. More...

#include <gann.h>

Inheritance diagram for GANN::GANN:
GA::IDNA GA::IDNA

Public Member Functions

 GANN (std::vector< unsigned int > const &infos)
 Constructor. More...
 
 GANN (ANN const &ann)
 Constructor.
 
 ~GANN (void)
 Destructor.
 
double getFitness (void) const
 Get the fitness of the GANN. More...
 
ANN const & getGenes (void) const
 Get the neural network of the GANN. More...
 
void setFitness (double fitness)
 Set the fitness of the GANN. More...
 
void setGenes (ANN const &ann)
 Set the neural network of the GANN. More...
 
void Print (void)
 Print the neural network in the shell.
 
 GANN (std::vector< unsigned int > const &infos)
 
 GANN (ANN const &ann)
 
double getFitness (void) const
 Get the fitness of the individual. More...
 
ANN const & getGenes (void) const
 
void setFitness (double fitness)
 Set the fitness of the individual. More...
 
void setGenes (ANN const &ann)
 
void Print (void)
 Allow to draw the individual on the shell.
 
- Public Member Functions inherited from GA::IDNA
virtual ~IDNA (void)
 Destructor.
 

Detailed Description

Define a new object called "GANN" for Genetic Artificial Neural Network that inherit of the interface IDNA.

Constructor & Destructor Documentation

GANN::GANN::GANN ( std::vector< unsigned int > const &  infos)

Constructor.

Parameters
infos: Contains the topology of the neural network.

Member Function Documentation

double GANN::GANN::getFitness ( void  ) const
virtual

Get the fitness of the individual.

Returns
double : fitness

Implements GA::IDNA.

double GANN::GANN::getFitness ( void  ) const
virtual

Get the fitness of the GANN.

Returns
double

Implements GA::IDNA.

ANN const & GANN::GANN::getGenes ( void  ) const

Get the neural network of the GANN.

Returns
ANN const&
void GANN::GANN::setFitness ( double  fitness)
virtual

Set the fitness of the individual.

Parameters
fitness: Contains the new fitness.

Implements GA::IDNA.

void GANN::GANN::setFitness ( double  fitness)
virtual

Set the fitness of the GANN.

Parameters
fitness: Contains the new fitness of the GANN.

Implements GA::IDNA.

void GANN::GANN::setGenes ( ANN const &  ann)

Set the neural network of the GANN.

Parameters
ann: Contains the new neural network of the GANN.

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