Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

GAIsPartOfBasis Class Reference

#include <GAIsPartOfBasis.h>

List of all members.

Public Methods

 GAIsPartOfBasis (const FreeGroup &G, const ACConfig &config, const VectorOf< Word > &v, float s=0.0)
 GAIsPartOfBasis (const FreeGroup &G, const ACConfig &config, const VectorOf< Word > &,const VectorOf< Word > &, float s=0.0)
 GAIsPartOfBasis (const FreeGroup &G, const ACConfig &config, const Word &w, float s=0.0)
 ~GAIsPartOfBasis ()
Trichotomy transform (ostream &, int)
bool isPartOfBasis (ostream &out1, ostream &out2)
bool isPartOfBasis (ostream &out1, const Chars &out2_f_name)
VectorOf<WordgetAutomorphism () const
Word getSolutionSequence () const
const VectorOf<Word>& getCurrentBestWords () const
const VectorOf<Word>& getFixedWords () const
int nOfGenerations () const
int fitness (const Word &u, ostream &out=cout, bool print=false)
Word randomWord ()
void printTransformations (ostream &out) const

Private Methods

void initialize ()
void printWords (ostream &o, const VectorOf< Word > &v) const
Word mutate (const Word &u)
int randomGen ()
Word crossover1 (const Word &w1, const Word &w2)
int genToInsertAfter (Generator g)
int genToInsertBefore (Generator g)
int genToInsert (Generator g1, Generator g2)
VectorOf<WordcomputeAuto (const Word &)
int computeFitnessReduce (const VectorOf< Word > &v) const
int computeFitnessAuto (const VectorOf< Word > &v) const
int hamingDistance (const Word &w1, const Word &w2) const
int hamingDistanceCyclic (const Word &w1, const Word &w2) const
int tupleHamingDistance (const VectorOf< Word > &,const VectorOf< Word > &) const
void permuteVector (VectorOf< Word > &v1, int move_to) const

Private Attributes

FPGroup theGroup
ACConfig cfg
Chars best_out_name
bool print_best_each_time
UniformRandom r
int numberOfGens
int numberOfTrans
int threshold
Word solutionSequence
AssociationsOf<int,int> reduces
int g
int sav_first_max
Word finalResult
Word bestTransformation
int total_tr
int swithc_tr
float step


int main (int, char **)

Constructor & Destructor Documentation

GAIsPartOfBasis::GAIsPartOfBasis ( const FreeGroup & G,
const ACConfig & config,
const VectorOf< Word > & v,
float s = 0.0 )

GAIsPartOfBasis::GAIsPartOfBasis ( const FreeGroup & G,
const ACConfig & config,
const VectorOf< Word > &,
const VectorOf< Word > &,
float s = 0.0 )

GAIsPartOfBasis::GAIsPartOfBasis ( const FreeGroup & G,
const ACConfig & config,
const Word & w,
float s = 0.0 )

GAIsPartOfBasis::~GAIsPartOfBasis ( ) [inline]

Definition at line 62 of file GAIsPartOfBasis.h.

Member Function Documentation

Trichotomy GAIsPartOfBasis::transform ( ostream &,
int )

bool GAIsPartOfBasis::isPartOfBasis ( ostream & out1,
ostream & out2 )

Referenced by WhiteheadExperiment::run().

bool GAIsPartOfBasis::isPartOfBasis ( ostream & out1,
const Chars & out2_f_name )

VectorOf< Word > GAIsPartOfBasis::getAutomorphism<Word> ( ) const [inline]

Definition at line 82 of file GAIsPartOfBasis.h.

Word GAIsPartOfBasis::getSolutionSequence ( ) const [inline]

Definition at line 84 of file GAIsPartOfBasis.h.

Referenced by WhiteheadExperiment::run().

const VectorOf< Word > & GAIsPartOfBasis::getCurrentBestWords<Word> ( ) const [inline]

Definition at line 85 of file GAIsPartOfBasis.h.

const VectorOf< Word > & GAIsPartOfBasis::getFixedWords<Word> ( ) const [inline]

Definition at line 86 of file GAIsPartOfBasis.h.

int GAIsPartOfBasis::nOfGenerations ( ) const [inline]

Definition at line 88 of file GAIsPartOfBasis.h.

Referenced by WhiteheadExperiment::run().

int GAIsPartOfBasis::fitness ( const Word & u,
ostream & out = cout,
bool print = false )

Word GAIsPartOfBasis::randomWord ( )

void GAIsPartOfBasis::printTransformations ( ostream & out ) const

Referenced by WhiteheadExperiment::run().

void GAIsPartOfBasis::initialize ( ) [private]

void GAIsPartOfBasis::printWords ( ostream & o,
const VectorOf< Word > & v ) const [private]

Word GAIsPartOfBasis::mutate ( const Word & u ) [private]

int GAIsPartOfBasis::randomGen ( ) [private]

Word GAIsPartOfBasis::crossover1 ( const Word & w1,
const Word & w2 ) [private]

int GAIsPartOfBasis::genToInsertAfter ( Generator g ) [private]

int GAIsPartOfBasis::genToInsertBefore ( Generator g ) [private]

int GAIsPartOfBasis::genToInsert ( Generator g1,
Generator g2 ) [private]

VectorOf<Word> GAIsPartOfBasis::computeAuto ( const Word & ) [private]

int GAIsPartOfBasis::computeFitnessReduce ( const VectorOf< Word > & v ) const [private]

int GAIsPartOfBasis::computeFitnessAuto ( const VectorOf< Word > & v ) const [private]

int GAIsPartOfBasis::hamingDistance ( const Word & w1,
const Word & w2 ) const [private]

int GAIsPartOfBasis::hamingDistanceCyclic ( const Word & w1,
const Word & w2 ) const [private]

int GAIsPartOfBasis::tupleHamingDistance ( const VectorOf< Word > &,
const VectorOf< Word > & ) const [private]

void GAIsPartOfBasis::permuteVector ( VectorOf< Word > & v1,
int move_to ) const [private]

Friends And Related Function Documentation

int main ( int,
char ** ) [friend]

Member Data Documentation

FPGroup GAIsPartOfBasis::theGroup [private]

Definition at line 145 of file GAIsPartOfBasis.h.

ACConfig GAIsPartOfBasis::cfg [private]

Definition at line 146 of file GAIsPartOfBasis.h.

VectorOf<Word> GAIsPartOfBasis::theWords [private]

Definition at line 147 of file GAIsPartOfBasis.h.

VectorOf<Word> GAIsPartOfBasis::tmpWords [private]

Definition at line 149 of file GAIsPartOfBasis.h.

VectorOf<Word> GAIsPartOfBasis::bestWords [private]

Definition at line 151 of file GAIsPartOfBasis.h.

VectorOf<Word> GAIsPartOfBasis::fixedWords [private]

Definition at line 152 of file GAIsPartOfBasis.h.

Chars GAIsPartOfBasis::best_out_name [private]

Definition at line 154 of file GAIsPartOfBasis.h.

bool GAIsPartOfBasis::print_best_each_time [private]

Definition at line 155 of file GAIsPartOfBasis.h.

UniformRandom GAIsPartOfBasis::r [private]

Definition at line 159 of file GAIsPartOfBasis.h.

int GAIsPartOfBasis::numberOfGens [private]

Definition at line 160 of file GAIsPartOfBasis.h.

int GAIsPartOfBasis::numberOfTrans [private]

Definition at line 161 of file GAIsPartOfBasis.h.

int GAIsPartOfBasis::threshold [private]

Definition at line 162 of file GAIsPartOfBasis.h.

VectorOf<Word> GAIsPartOfBasis::transformations [private]

Definition at line 164 of file GAIsPartOfBasis.h.

VectorOf<Word> GAIsPartOfBasis::transferImage [private]

Definition at line 165 of file GAIsPartOfBasis.h.

VectorOf<Word> GAIsPartOfBasis::theAuto [private]

Definition at line 166 of file GAIsPartOfBasis.h.

Word GAIsPartOfBasis::solutionSequence [private]

Definition at line 167 of file GAIsPartOfBasis.h.

AssociationsOf<int,int> GAIsPartOfBasis::reduces [private]

Definition at line 168 of file GAIsPartOfBasis.h.

int GAIsPartOfBasis::g [private]

Definition at line 170 of file GAIsPartOfBasis.h.

int GAIsPartOfBasis::sav_first_max [private]

Definition at line 171 of file GAIsPartOfBasis.h.

Word GAIsPartOfBasis::finalResult [private]

Definition at line 173 of file GAIsPartOfBasis.h.

Word GAIsPartOfBasis::bestTransformation [private]

Definition at line 174 of file GAIsPartOfBasis.h.

int GAIsPartOfBasis::total_tr [private]

Definition at line 175 of file GAIsPartOfBasis.h.

int GAIsPartOfBasis::swithc_tr [private]

Definition at line 176 of file GAIsPartOfBasis.h.

SetOf<PairOfWords> GAIsPartOfBasis::orig_min [private]

Definition at line 178 of file GAIsPartOfBasis.h.

float GAIsPartOfBasis::step [private]

Definition at line 183 of file GAIsPartOfBasis.h.

The documentation for this class was generated from the following file:
Generated at Tue Jun 19 09:49:54 2001 for Magnus Classes by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001