|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.ml.genetic.genes.BasicGene
org.encog.neural.neat.training.NEATLinkGene
public class NEATLinkGene
Implements a NEAT link gene. This describes a way in which two neurons are linked. NeuroEvolution of Augmenting Topologies (NEAT) is a genetic algorithm for the generation of evolving artificial neural networks. It was developed by Ken Stanley while at The University of Texas at Austin. http://www.cs.ucf.edu/~kstanley/
| Constructor Summary | |
|---|---|
NEATLinkGene()
Default constructor, used mainly for persistence. |
|
NEATLinkGene(long fromNeuronID,
long toNeuronID,
boolean enabled,
long innovationID,
double weight,
boolean recurrent)
Construct a NEAT link gene. |
|
| Method Summary | |
|---|---|
void |
copy(Gene gene)
Copy from another gene. |
long |
getFromNeuronID()
|
long |
getToNeuronID()
|
double |
getWeight()
|
boolean |
isRecurrent()
|
void |
setFromNeuronID(int i)
|
void |
setRecurrent(boolean b)
|
void |
setToNeuronID(int i)
|
void |
setWeight(double weight)
Set the weight of this connection. |
String |
toString()
|
| Methods inherited from class org.encog.ml.genetic.genes.BasicGene |
|---|
compareTo, getId, getInnovationId, isEnabled, setEnabled, setId, setInnovationId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NEATLinkGene()
public NEATLinkGene(long fromNeuronID,
long toNeuronID,
boolean enabled,
long innovationID,
double weight,
boolean recurrent)
fromNeuronID - The source neuron.toNeuronID - The target neuron.enabled - Is this link enabled.innovationID - The innovation id.weight - The weight.recurrent - Is this a recurrent link?| Method Detail |
|---|
public void copy(Gene gene)
copy in interface Genegene - The other gene.public long getFromNeuronID()
public long getToNeuronID()
public double getWeight()
public boolean isRecurrent()
public void setWeight(double weight)
weight - The connection weight.public String toString()
toString in class Objectpublic void setFromNeuronID(int i)
public void setToNeuronID(int i)
public void setRecurrent(boolean b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||