|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.neural.networks.synapse.BasicSynapse
org.encog.neural.networks.synapse.WeightedSynapse
public class WeightedSynapse
A fully-connected weight based synapse. Inputs will be multiplied by the weight matrix and presented to the layer. This synapse type is teachable.
| Constructor Summary | |
|---|---|
WeightedSynapse()
Simple default constructor. |
|
WeightedSynapse(Layer fromLayer,
Layer toLayer)
Construct a weighted synapse between the two layers. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
NeuralData |
compute(NeuralData input)
Compute the weighted output from this synapse. |
Persistor |
createPersistor()
Return a persistor for this object. |
Matrix |
getMatrix()
Get the weight and threshold matrix. |
int |
getMatrixSize()
Get the size of the matrix, or zero if one is not defined. |
SynapseType |
getType()
|
boolean |
isTeachable()
|
void |
setMatrix(Matrix matrix)
Assign a new weight and threshold matrix to this layer. |
| Methods inherited from class org.encog.neural.networks.synapse.BasicSynapse |
|---|
getDescription, getFromLayer, getFromNeuronCount, getName, getToLayer, getToNeuronCount, isSelfConnected, setDescription, setFromLayer, setName, setToLayer, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WeightedSynapse()
public WeightedSynapse(Layer fromLayer,
Layer toLayer)
fromLayer - The starting layer.toLayer - The ending layer.| Method Detail |
|---|
public java.lang.Object clone()
clone in interface Synapseclone in class BasicSynapsepublic NeuralData compute(NeuralData input)
input - The input from the synapse.
public Persistor createPersistor()
public Matrix getMatrix()
public int getMatrixSize()
public SynapseType getType()
public boolean isTeachable()
public void setMatrix(Matrix matrix)
matrix - The new matrix.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||