Klasse 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
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungConnection(Neuron targetNeuron) The main constructor for the Connection class -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic doublestatic doubleGetter for the source neurondoubleGetter for the weightvoidsetWeight(double weight) Setter for the weight
-
Konstruktordetails
-
Connection
The main constructor for the Connection class- Parameter:
targetNeuron- The source/target neuron
-
-
Methodendetails
-
getWeight
public double getWeight()Getter for the weight- Gibt zurück:
- the connections weight
-
setWeight
public void setWeight(double weight) Setter for the weight- Parameter:
weight- The new weight
-
getSourceNeuron
Getter for the source neuron- Gibt zurück:
- The source neuron of the connection
-
getRandomWeight
public static double getRandomWeight() -
getRandomBias
public static double getRandomBias()
-