Class Layer

All Implemented Interfaces:
Serializable, Cloneable, Iterable<Neuron>, Collection<Neuron>, List<Neuron>, RandomAccess, SequencedCollection<Neuron>

public class Layer extends ArrayList<Neuron>
A Layer of Neurons in an ANN.
See Also:
  • Constructor Details

    • Layer

      public Layer()
  • Method Details

    • create

      public static Layer create(int numNeurons)
      Create a Layer with the specified number of neurons with the default Activation Function: Neuron.DEFAULT_ACTIVATION_FUNCTION with steepness: Neuron.DEFAULT_ACTIVATION_STEEPNESS
      Parameters:
      numNeurons -
      Returns:
    • create

      public static Layer create(int numNeurons, ActivationFunction activationFunction)
      Create a Layer with the specified number of neurons and a particular ActivationFunction with the steepness: Neuron.DEFAULT_ACTIVATION_STEEPNESS
      Parameters:
      numNeurons -
      activationFunction -
      Returns:
    • create

      public static Layer create(int numNeurons, ActivationFunction activationFunction, float steepness)
      Create a Layer with the specified number of neurons and a particular ActivationFunction with specified steepness
      Parameters:
      numNeurons -
      activationFunction -
      steepness -
      Returns: