Class Connection
java.lang.Object
me.damoebe.architectures.mlp.structure.Connection
A class used to connect two neurons by making one the source neuron and the other one the neuron containing the connection
-
Constructor Summary
ConstructorsConstructorDescriptionConnection(Neuron targetNeuron) The main constructor for the Connection class -
Method Summary
Modifier and TypeMethodDescriptionstatic doublestatic doubleGetter for the source neurondoubleGetter for the weightvoidsetWeight(double weight) Setter for the weight
-
Constructor Details
-
Connection
The main constructor for the Connection class- Parameters:
targetNeuron- The source/target neuron
-
-
Method Details
-
getWeight
public double getWeight()Getter for the weight- Returns:
- the connections weight
-
setWeight
public void setWeight(double weight) Setter for the weight- Parameters:
weight- The new weight
-
getSourceNeuron
Getter for the source neuron- Returns:
- The source neuron of the connection
-
getRandomWeight
public static double getRandomWeight() -
getRandomBias
public static double getRandomBias()
-