org.encog.neural.neat
public class NEATLink extends Object implements Serializable, Comparable<NEATLink>
Constructor and Description |
---|
NEATLink(int theFromNeuron,
int theToNeuron,
double theWeight)
Construct a NEAT link.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(NEATLink other) |
boolean |
equals(Object other) |
int |
getFromNeuron() |
int |
getToNeuron() |
double |
getWeight() |
void |
setFromNeuron(int fromNeuron)
Set the from neuron.
|
void |
setToNeuron(int toNeuron)
Set the target neuron.
|
void |
setWeight(double weight)
Set the weight of this link.
|
String |
toString() |
public NEATLink(int theFromNeuron, int theToNeuron, double theWeight)
theFromNeuron
- The from neuron.theToNeuron
- The to neuron.theWeight
- The weight.public int compareTo(NEATLink other)
compareTo
in interface Comparable<NEATLink>
public int getFromNeuron()
public int getToNeuron()
public double getWeight()
public void setFromNeuron(int fromNeuron)
fromNeuron
- The from neuron.public void setToNeuron(int toNeuron)
toNeuron
- The target neuron.public void setWeight(double weight)
weight
- The weight.Copyright © 2014. All Rights Reserved.