Package com.googlecode.fannj
Class Layer
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<Neuron>
-
- com.googlecode.fannj.Layer
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<Neuron>,java.util.Collection<Neuron>,java.util.List<Neuron>,java.util.RandomAccess
public class Layer extends java.util.ArrayList<Neuron>
A Layer of Neurons in an ANN.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Layer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Layercreate(int numNeurons)Create a Layer with the specified number of neurons with the default Activation Function:Neuron.DEFAULT_ACTIVATION_FUNCTIONwith steepness:Neuron.DEFAULT_ACTIVATION_STEEPNESSstatic Layercreate(int numNeurons, ActivationFunction activationFunction)Create a Layer with the specified number of neruons and a particular ActivationFunction with the steepness:Neuron.DEFAULT_ACTIVATION_STEEPNESSstatic Layercreate(int numNeurons, ActivationFunction activationFunction, float steepness)Create a Layer with the specified number of neruons and a particular ActivationFunction with specified steepness-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Method Detail
-
create
public static Layer create(int numNeurons)
Create a Layer with the specified number of neurons with the default Activation Function:Neuron.DEFAULT_ACTIVATION_FUNCTIONwith 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 neruons 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 neruons and a particular ActivationFunction with specified steepness- Parameters:
numNeurons-activationFunction-steepness-- Returns:
-
-