public class SLayer
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
SLayer(int layer,
NeocognitronStructure s)
Constructor for SLayer.
|
Modifier and Type | Method and Description |
---|---|
void |
InitializeA(int previousPlanes)
Initializes each a weight matrix for a[planes][c-planes][window]
|
void |
InitializeB()
Initialize each b weight to zero
|
void |
InitializeCells(double r)
Initialize each s-cell.
|
OutputConnections |
propagate(OutputConnections input,
boolean train)
For a given input, determine the output for this layer.
|
void |
train(OutputConnections input,
OutputConnections output,
double[][] vOutput)
Train the s-layer.
|
public SLayer(int layer, NeocognitronStructure s)
layer
- Layer used to access values from the NeocognitronStuctures
- NeocognitronStructure used to dictate the structure of the layerpublic void InitializeA(int previousPlanes)
previousPlanes
- Number of planes in the previous c-layerpublic void InitializeB()
public void InitializeCells(double r)
r
- Constant rpublic OutputConnections propagate(OutputConnections input, boolean train)
input
- A square image containing the character to be recognized.train
- A boolean value which determines if the layer should be
trained or notpublic void train(OutputConnections input, OutputConnections output, double[][] vOutput)
input
- Input to the layeroutput
- Output for the given inputvOutput
- v-plane output for the given input