Package ann4j
Class InputLayer
java.lang.Object
ann4j.Layer
ann4j.InputLayer
-
Field Summary
Fields inherited from class ann4j.Layer
layerNum, listOfNeurons, myBehaviour
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
The setBehaviour() function is an abstract function that is used to set the behaviour of the animal.void
This is setting the activation of each neuron in the input layer to the corresponding value in the input arrayMethods inherited from class ann4j.Layer
addNeuron, backwardPropagate, forwardPropagate, getListOfNeurons, getNeuron, getSize, printWeights, relevancePropagate, setLayerNum, toString
-
Constructor Details
-
InputLayer
InputLayer(int numOfNeurons)
-
-
Method Details
-
setInput
This is setting the activation of each neuron in the input layer to the corresponding value in the input array- Parameters:
inputLayerArray
- This is the array of inputs that you want to set the input layer to.
-
setBehaviour
public void setBehaviour()Description copied from class:Layer
The setBehaviour() function is an abstract function that is used to set the behaviour of the animal.- Specified by:
setBehaviour
in classLayer
-