public class LinearNeuronParametricMutator extends java.lang.Object implements INeuronParametricMutator<LinearNeuron>
Parametric Mutator of Linear 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 |
---|
LinearNeuronParametricMutator()
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(LinearNeuron 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 LinearNeuronParametricMutator()
Empty constructor
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(LinearNeuron 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<LinearNeuron>
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