public class NeuronString extends Object implements Serializable
| Constructor and Description |
|---|
NeuronString(int num,
boolean wrap,
FeatureInitializer[] featureInit)
Creates a one-dimensional network:
Each neuron not located on the border of the mesh has two
neurons linked to it.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
getFeatures(int i)
Retrieves the features set from the neuron at location
i in the map. |
Network |
getNetwork()
Retrieves the underlying network.
|
int |
getSize()
Gets the number of neurons.
|
public NeuronString(int num,
boolean wrap,
FeatureInitializer[] featureInit)
num - Number of neurons.wrap - Whether to wrap the dimension (i.e the first and last
neurons will be linked together).featureInit - Arrays that will initialize the features sets of
the network's neurons.NumberIsTooSmallException - if num < 2.public Network getNetwork()
Network
topology may cause this class to become inconsistent.public int getSize()
public double[] getFeatures(int i)
i in the map.i - Neuron index.i.OutOfRangeException - if i is out of range.Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.