public class ExpNeuronParametricMutator extends java.lang.Object implements INeuronParametricMutator<ExpNeuron>
Parametric Mutator of Exponential Neurons
Modifier and Type | Field and Description |
---|---|
protected double |
amplitude
Amplitude coefficient for allowed weights
|
protected IRandGen |
randgen
Random generator used in mutation
|
Constructor and Description |
---|
ExpNeuronParametricMutator()
Empty constructor
|
Modifier and Type | Method and Description |
---|---|
double |
getAmplitude()
Returns the amplitude coefficient for allowed weights
|
IRandGen |
getRandgen()
Returns the random generator used in mutation
|
void |
parametricMutation(ExpNeuron neuron,
LinkedLayer layer,
LinkedLayer nextLayer,
int indexNeuron,
double alphaInput,
double alphaOutput,
double temper)
Do the parametric mutation over the links of a specific neuron
in a specific layer
|
void |
setAmplitude(double amplitude)
Sets the amplitude coefficient for allowed weights
|
void |
setRandgen(IRandGen randgen)
Sets the random generator used in mutation
|
protected IRandGen randgen
protected double amplitude
public double getAmplitude()
Returns the amplitude coefficient for allowed weights
public void setAmplitude(double amplitude)
Sets the amplitude coefficient for allowed weights
amplitude
- New amplitude coefficientpublic IRandGen getRandgen()
Returns the random generator used in mutation
public void setRandgen(IRandGen randgen)
Sets the random generator used in mutation
randgen
- New random generatorpublic void parametricMutation(ExpNeuron neuron, LinkedLayer layer, LinkedLayer nextLayer, int indexNeuron, double alphaInput, double alphaOutput, double temper)
Do the parametric mutation over the links of a specific neuron in a specific layer
parametricMutation
in interface INeuronParametricMutator<ExpNeuron>
neuron
- Neuron in the layer to mutatelayer
- Layer that contains the neuronnextLayer
- Next layerindexNeuron
- Index of neuron in the layeralphaInput
- Alpha coeficient for the input weigthsalphaOutput
- Alpha coeficient for the output weigthstemper
- Temperature of the individual that is being mutated