ECF 1.5
BitStringMutSimple.h
1#ifndef BitStringMutSimple_h
2#define BitStringMutSimple_h
3
4
5namespace BitString
6{
7
13{
14protected:
15 double bitProb_;
17
18public:
19 bool mutate(GenotypeP gene);
20 bool initialize(StateP);
21 void registerParameters(StateP);
22};
23typedef boost::shared_ptr<BitStringMutSimple> BitStringMutSimpleP;
24}
25#endif // BitStringMutSimple_h
26
BitString genotype simple (one bit) mutation operator.
bool bUseBitProb_
are we using bit mutation probabiltiy (instead of individual probability)
double bitProb_
probability of single bit mutation
bool mutate(GenotypeP gene)
Performs mutation of a genotype object. The genotype object must be initialized!
void registerParameters(StateP)
Register parameters with the system. Called before MutationOp::initialize.
bool initialize(StateP)
Initialize mutation operator. Called before first mutation operation.
MutationOp base class.
Definition: Mutation.h:17