public interface Link
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Performs computations for this link.
|
Layer |
getSource()
Returns a source layer.
|
Layer |
getTarget()
Return the target layer.
|
double |
getWeight(int toNeuron,
int fromNeuron)
Returns a weight between
toNeuron-th neuron in the target
layer and fromNeuron-th neuron in the source layer. |
int |
getWeightCount()
Returns the number of weights in this link.
|
void |
setWeight(int toNeuron,
int fromNeuron,
double weight)
Sets a weight between
toNeuron-th neuron in the target
layer and fromNeuron-th neuron in the source layer. |
void activate()
Layer getSource()
Layer getTarget()
void setWeight(int toNeuron,
int fromNeuron,
double weight)
toNeuron-th neuron in the target
layer and fromNeuron-th neuron in the source layer.
I.e. sets the element
in the
weight matrix to the given value.toNeuron - an index of the neuron in the target layerfromNeuron - an index of the neuron in the source layerweight - the weightdouble getWeight(int toNeuron,
int fromNeuron)
toNeuron-th neuron in the target
layer and fromNeuron-th neuron in the source layer.
I.e. returns the element
in
the weight matrix.fromNeuron - an index of the neuron in the source layertoNeuron - an index of the neuron in the target layerfromNeuron and toNeuronint getWeightCount()
Copyright © 2012. All Rights Reserved.