|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Layer
This interface defines all necessary methods for a neural network layer.
| Method Summary | |
|---|---|
NeuralData |
compute(NeuralData pattern)
Compute the output for this layer. |
NeuralData |
getFire()
|
Matrix |
getMatrix()
|
int |
getMatrixSize()
|
int |
getNeuronCount()
|
Layer |
getNext()
|
Layer |
getPrevious()
|
boolean |
hasMatrix()
|
boolean |
isHidden()
|
boolean |
isInput()
|
boolean |
isOutput()
|
void |
reset()
Reset the weight matrix to random values. |
void |
setFire(int i,
double value)
Set the specified fire value. |
void |
setFire(NeuralData fire)
Set the fire data. |
void |
setMatrix(Matrix matrix)
Set the weight matrix. |
void |
setNext(Layer layer)
Set the next layer. |
void |
setPrevious(Layer layer)
Set the previous layer. |
| Method Detail |
|---|
NeuralData compute(NeuralData pattern)
pattern - The input pattern.
void setPrevious(Layer layer)
layer - The previous layer.Layer getPrevious()
void setNext(Layer layer)
layer - The next layer.NeuralData getFire()
int getNeuronCount()
boolean isInput()
boolean isHidden()
Matrix getMatrix()
void reset()
int getMatrixSize()
void setFire(int i,
double value)
i - The index to set.value - The value to set.void setMatrix(Matrix matrix)
matrix - The matrix to set.boolean isOutput()
Layer getNext()
boolean hasMatrix()
void setFire(NeuralData fire)
fire - The fire data.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||