public class NeuronList extends java.util.ArrayList<Neuron> implements Storable, java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
NeuralNet |
net
The associated net (may be null).
|
| Constructor and Description |
|---|
NeuronList()
Constructs an empty neuron list.
|
NeuronList(int count,
Neuron neuron)
Constructs a new neuron list by cloning the given neuron.
|
NeuronList(NeuralNet net)
Constructs an empty neuron list referring to the given network.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fromXML(org.jdom2.Element element)
Reads attributes from XML tree.
|
void |
sortRandom()
Returns this list of the given net with neurons in random order.
|
boolean |
sortTopological()
Sorts the neuron's of a feed-forward network in topological order and assigns layer numbers
starting with 0 (input layer).
|
java.lang.String |
toString()
Returns a string representation of this neuron list.
|
org.jdom2.Element |
toXML(org.jdom2.Element element)
Writes attributes to XML tree.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizepublic NeuralNet net
public NeuronList()
public NeuronList(int count,
Neuron neuron)
count - the size of the listneuron - the neuron typepublic NeuronList(NeuralNet net)
net - a neural networkpublic boolean sortTopological()
public void sortRandom()
public java.lang.String toString()
toString in class java.util.AbstractCollection<Neuron>public void fromXML(org.jdom2.Element element)
Storable