org.encog.neural.neat
Class NEATLink
- java.lang.Object
-
- org.encog.neural.neat.NEATLink
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<NEATLink>
public class NEATLink extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<NEATLink>
Implements a link between two NEAT neurons. 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/ Encog's NEAT implementation was drawn from the following three Journal Articles. For more complete BibTeX sources, see NEATNetwork.java. Evolving Neural Networks Through Augmenting Topologies Generating Large-Scale Neural Networks Through Discovering Geometric Regularities Automatic feature selection in neuroevolution- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description NEATLink(int theFromNeuron, int theToNeuron, double theWeight)Construct a NEAT link.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intcompareTo(NEATLink other)booleanequals(java.lang.Object other)intgetFromNeuron()intgetToNeuron()doublegetWeight()voidsetFromNeuron(int fromNeuron)Set the from neuron.voidsetToNeuron(int toNeuron)Set the target neuron.voidsetWeight(double weight)Set the weight of this link.java.lang.StringtoString()
-
-
-
Constructor Detail
-
NEATLink
public NEATLink(int theFromNeuron, int theToNeuron, double theWeight)Construct a NEAT link.- Parameters:
theFromNeuron- The from neuron.theToNeuron- The to neuron.theWeight- The weight.
-
-
Method Detail
-
compareTo
public int compareTo(NEATLink other)
- Specified by:
compareToin interfacejava.lang.Comparable<NEATLink>
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getFromNeuron
public int getFromNeuron()
- Returns:
- The from neuron.
-
getToNeuron
public int getToNeuron()
- Returns:
- The to neuron.
-
getWeight
public double getWeight()
- Returns:
- The weight of the link.
-
setFromNeuron
public void setFromNeuron(int fromNeuron)
Set the from neuron.- Parameters:
fromNeuron- The from neuron.
-
setToNeuron
public void setToNeuron(int toNeuron)
Set the target neuron.- Parameters:
toNeuron- The target neuron.
-
setWeight
public void setWeight(double weight)
Set the weight of this link.- Parameters:
weight- The weight.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG