|
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.WeightlessSynapse
public class WeightlessSynapse
A fully connected synapse that simply sums all input to each neuron, no weights are applied. This synapse type is not teachable.
| Constructor Summary | |
|---|---|
WeightlessSynapse()
Simple default constructor. |
|
WeightlessSynapse(Layer fromLayer,
Layer toLayer)
Construct a weighted synapse between the two layers. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
NeuralData |
compute(NeuralData input)
Compute the weightless 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)
Attempt to set the matrix for 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 WeightlessSynapse()
public WeightlessSynapse(Layer fromLayer,
Layer toLayer)
fromLayer - The starting layer.toLayer - The ending layer.| Method Detail |
|---|
public java.lang.Object clone()
clone in interface Synapseclone in interface EncogPersistedObjectclone in class BasicSynapsepublic NeuralData compute(NeuralData input)
input - The input from the synapse.
public Persistor createPersistor()
public Matrix getMatrix()
Synapse
public int getMatrixSize()
Synapse
public SynapseType getType()
public boolean isTeachable()
public void setMatrix(Matrix matrix)
matrix - Not used.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||