Package ann4j

Class InputLayer

java.lang.Object
ann4j.Layer
ann4j.InputLayer

public class InputLayer extends Layer
  • Constructor Details

    • InputLayer

      InputLayer(int numOfNeurons)
  • Method Details

    • setInput

      public void setInput(ArrayList<Double> inputLayerArray)
      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 class Layer