public class NodesAndWeights.Weight
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
i
The joone i index of this weight
|
int |
I
The node I in Z into which this weight fires
|
protected int |
j
The joone j index of this weight
|
int |
J
The node J in Z from which this weight fires
|
protected Layer |
layer
The joone layer which is used if this weight is a bias
|
protected double |
maximumWeightMagnitude
The maximum weight magnitude.
|
protected Synapse |
synapse
The joone synapse which is used if this weight is a normal synaptical weight
|
int |
w
The position in the weights array at which this node is found
|
Constructor and Description |
---|
NodesAndWeights.Weight(Layer layer,
int i,
int I,
int J)
Initialise this weight from a joone layer
|
NodesAndWeights.Weight(Synapse synapse,
int i,
int j,
int I,
int J)
Initialise this weight from a joone synapse.
|
Modifier and Type | Method and Description |
---|---|
void |
addDelta(double delta)
Add a given amount to this weight's delta
|
void |
addWeight(double delta)
Update this weight with the given delta amount, also update the weight delta
|
double |
getDelta()
Retrieve this weight's delta
|
java.lang.String |
getDescription()
Returns a description of the weight
|
double |
getWeight()
Retrieve this weight
|
void |
setDelta(double delta)
Set this weight's delta to a specific value
|
void |
setWeight(double weight)
Set this weight to a specific value
|
public int I
public int J
public int w
protected int i
protected int j
protected double maximumWeightMagnitude
protected Layer layer
protected Synapse synapse
public NodesAndWeights.Weight(Layer layer, int i, int I, int J)
layer
- the joone layer where this is foundi
- the index into the layer at which this is foundI
- the node into which this weight firesJ
- the node from which this weight firespublic NodesAndWeights.Weight(Synapse synapse, int i, int j, int I, int J)
synapse
- the joone synapse where this is foundi
- the row in the synapse at which the weight is foundj
- the column in the synapse at which the weight is foundK
- the node in Z from which this weight is comingpublic void addWeight(double delta)
public void setWeight(double weight)
public double getWeight()
public void addDelta(double delta)
public void setDelta(double delta)
public double getDelta()
public java.lang.String getDescription()
Submit Feedback to pmarrone@users.sourceforge.net