add some missing className
This commit is contained in:
parent
39ff028e57
commit
da4118142f
2 changed files with 20 additions and 0 deletions
|
|
@ -48,6 +48,9 @@ template <class EOT> class eoRandomSelect: public eoSelectOne<EOT>
|
|||
{
|
||||
return _pop[eo::rng.random(_pop.size())] ;
|
||||
}
|
||||
|
||||
virtual std::string className() const {return "eoRandomSelect";}
|
||||
|
||||
};
|
||||
|
||||
/** eoBestSelect: a selection method that always return the best
|
||||
|
|
@ -64,6 +67,8 @@ template <class EOT> class eoBestSelect: public eoSelectOne<EOT>
|
|||
{
|
||||
return _pop.best_element() ;
|
||||
}
|
||||
|
||||
virtual std::string className() const {return "eoBestSelect";}
|
||||
};
|
||||
|
||||
/** eoNoSelect: returns all individual in order WITHOUT USING FITNESS!!!
|
||||
|
|
@ -86,6 +91,9 @@ template <class EOT> class eoNoSelect: public eoSelectOne<EOT>
|
|||
current++;
|
||||
return _pop[current-1] ;
|
||||
}
|
||||
|
||||
virtual std::string className() const {return "eoNoSelect";}
|
||||
|
||||
private:
|
||||
unsigned current;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@ class eoStandardBitMutation : public eoMonOp<EOT>
|
|||
return _bitflip(chrom);
|
||||
}
|
||||
|
||||
virtual std::string className() const {return "eoStandardBitMutation";}
|
||||
|
||||
protected:
|
||||
double _rate;
|
||||
unsigned _nb;
|
||||
|
|
@ -58,6 +60,8 @@ class eoUniformBitMutation : public eoMonOp<EOT>
|
|||
return _bitflip(chrom);
|
||||
}
|
||||
|
||||
virtual std::string className() const {return "eoUniformBitMutation";}
|
||||
|
||||
protected:
|
||||
double _rate;
|
||||
unsigned _nb;
|
||||
|
|
@ -93,6 +97,8 @@ class eoConditionalBitMutation : public eoStandardBitMutation<EOT>
|
|||
// thus one don't need to re-instantiate.
|
||||
return this->_bitflip(chrom);
|
||||
}
|
||||
|
||||
virtual std::string className() const {return "eoConditionalBitMutation";}
|
||||
};
|
||||
|
||||
/** Shifted standard bit mutation with mutation rate p:
|
||||
|
|
@ -125,6 +131,8 @@ class eoShiftedBitMutation : public eoStandardBitMutation<EOT>
|
|||
// thus one don't need to re-instantiate.
|
||||
return this->_bitflip(chrom);
|
||||
}
|
||||
|
||||
virtual std::string className() const {return "eoShiftedBitMutation";}
|
||||
};
|
||||
|
||||
/** Mutation which size is sample in a gaussian.
|
||||
|
|
@ -163,6 +171,8 @@ class eoNormalBitMutation : public eoStandardBitMutation<EOT>
|
|||
return this->_bitflip(chrom);
|
||||
}
|
||||
|
||||
virtual std::string className() const {return "eoNormalBitMutation";}
|
||||
|
||||
protected:
|
||||
double _variance;
|
||||
};
|
||||
|
|
@ -196,6 +206,8 @@ class eoFastBitMutation : public eoStandardBitMutation<EOT>
|
|||
return this->_bitflip(chrom);
|
||||
}
|
||||
|
||||
virtual std::string className() const {return "eoFastBitMutation";}
|
||||
|
||||
protected:
|
||||
|
||||
double powerlaw(unsigned n, double beta)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue