Main Page | Namespace List | Class List | File List | Class Members | File Members

Indiv Class Reference

#include <Indiv.h>

List of all members.

Public Member Functions

 Indiv (int nr_pars)
 ~Indiv ()
void init (vector< double > &parameter_ranges)
int get_nr_pars ()
std::vector< double > & get_pars ()
std::vector< double > & get_vars ()
double operator[] (int index) const
double & operator[] (int index)
int is_parent ()
void set_parent (int new_value)
void set_fitness (double new_value)
double get_fitness ()
void recombine (Indiv *parent1, Indiv *parent2)
void mutate ()

Friends

ostream & operator<< (ostream &out, const Indiv &ind)


Constructor & Destructor Documentation

Indiv::Indiv (  int  nr_pars  ) 
 

Indiv::~Indiv (   ) 
 


Member Function Documentation

double Indiv::get_fitness (   )  [inline]
 

int Indiv::get_nr_pars (   )  [inline]
 

std::vector<double>& Indiv::get_pars (   )  [inline]
 

std::vector<double>& Indiv::get_vars (   )  [inline]
 

void Indiv::init (  vector< double > &  parameter_ranges  ) 
 

int Indiv::is_parent (   )  [inline]
 

void Indiv::mutate (   ) 
 

double& Indiv::operator[] (  int  index  )  [inline]
 

double Indiv::operator[] (  int  index  )  const [inline]
 

void Indiv::recombine (  Indiv *  parent1,
Indiv *  parent2
) 
 

void Indiv::set_fitness (  double  new_value  )  [inline]
 

void Indiv::set_parent (  int  new_value  )  [inline]
 


Friends And Related Function Documentation

ostream& operator<< (  ostream &  out,
const Indiv &  ind
)  [friend]
 


The documentation for this class was generated from the following files:
Generated on Tue Jun 14 11:37:51 2005 for evofunc by doxygen 1.3.6