org.encog.neural.neat.training
public class NEATNeuronGene extends NEATBaseGene implements Serializable
| Constructor and Description |
|---|
NEATNeuronGene()
The default constructor.
|
NEATNeuronGene(NEATNeuronGene other)
Construct this gene by comping another.
|
NEATNeuronGene(NEATNeuronType type,
ActivationFunction theActivationFunction,
long id,
long innovationID)
Construct a neuron gene.
|
| Modifier and Type | Method and Description |
|---|---|
void |
copy(NEATNeuronGene gene)
Copy another gene to this one.
|
ActivationFunction |
getActivationFunction() |
NEATNeuronType |
getNeuronType() |
void |
setActivationFunction(ActivationFunction activationFunction) |
void |
setNeuronType(NEATNeuronType neuronType)
Set the neuron type.
|
String |
toString() |
compareTo, getId, getInnovationId, setId, setInnovationIdpublic NEATNeuronGene()
public NEATNeuronGene(NEATNeuronType type, ActivationFunction theActivationFunction, long id, long innovationID)
type - The neuron type.theActivationFunction - The activation function.id - The neuron id.innovationID - The innovation id.public NEATNeuronGene(NEATNeuronGene other)
other - The other gene to copy.public void copy(NEATNeuronGene gene)
gene - The other gene.public NEATNeuronType getNeuronType()
public void setNeuronType(NEATNeuronType neuronType)
neuronType - The neuron type.public ActivationFunction getActivationFunction()
public void setActivationFunction(ActivationFunction activationFunction)
activationFunction - the activationFunction to setCopyright © 2014. All Rights Reserved.