w2img::Gene Class Reference

List of all members.

Detailed Description

A Gene consists of a floating number which is to be optimized.

w2img_GeneticAlgorithm.h,v 1.4 2009/06/02 20:17:57 lakshman Exp

Public Member Functions

 Gene (double i_min, double i_max, double i_res, double i_x)
 The number can vary from min to max in increments of res.
 Gene ()
double getDiversity (const Gene &o) const
void print (FILE *fp)
double getX () const
double getMin () const
double getMax () const
double getRes () const
bool mutate (double sigma, code::Random &rnd)
void randomize (code::Random &rnd)

Static Public Member Functions

static double getSigmaForProb (double prob)

Constructor & Destructor Documentation

w2img::Gene::Gene ( double  i_min,
double  i_max,
double  i_res,
double  i_x 
) [inline]

The number can vary from min to max in increments of res.

w2img::Gene::Gene (  )  [inline]

Member Function Documentation

double w2img::Gene::getDiversity ( const Gene o  )  const

double w2img::Gene::getMax (  )  const [inline]

double w2img::Gene::getMin (  )  const [inline]

double w2img::Gene::getRes (  )  const [inline]

static double w2img::Gene::getSigmaForProb ( double  prob  )  [static]

double w2img::Gene::getX (  )  const [inline]

bool w2img::Gene::mutate ( double  sigma,
code::Random &  rnd 

void w2img::Gene::print ( FILE *  fp  ) 

void w2img::Gene::randomize ( code::Random &  rnd  ) 

Generated on Fri May 4 13:40:23 2012 for WDSS-IIw2algs by  doxygen 1.4.7