mutationRules
Class MutateBeliefs

java.lang.Object
  |
  +--mutationRules.MutateBeliefs
All Implemented Interfaces:
MutationRule

public class MutateBeliefs
extends java.lang.Object
implements MutationRule

Mutates an agents beliefs, this includes strategy weights, beliefs, and alpha and beta levels.

Author:
Kevin J.S. Zollman

Constructor Summary
MutateBeliefs()
          Constructor which sets mutation rate to 0.
MutateBeliefs(double m)
          Constructor which accepts rate and strategy number.
 
Method Summary
 double getMutationRate()
           
 void mutate(Individual i)
          Mutates weights, beliefs, and alpha/beta values.
 void setMutationRate(double m, int s)
          Sets the mutation rate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MutateBeliefs

public MutateBeliefs(double m)
              throws ModelError
Constructor which accepts rate and strategy number.


MutateBeliefs

public MutateBeliefs()
Constructor which sets mutation rate to 0.

Method Detail

mutate

public void mutate(Individual i)
            throws ModelError
Mutates weights, beliefs, and alpha/beta values.

Specified by:
mutate in interface MutationRule
ModelError

setMutationRate

public void setMutationRate(double m,
                            int s)
                     throws ModelError
Sets the mutation rate

Specified by:
setMutationRate in interface MutationRule
ModelError

getMutationRate

public double getMutationRate()
Specified by:
getMutationRate in interface MutationRule