de.webdings.jannis.neuralnet

Class NeuronIDFinder


public class NeuronIDFinder
extends java.lang.Object

NeuronIDFinder is used to find the ID of a given neuron in a net. It uses the same ID system as NNML.

You should have received a DTD of NNML along with Jannis. If not, or if you're looking for further info on NNML, visit the Jannis project Website on Savannah: http://www.nongnu.org/jannis/

Version:
0.1 10.08.2005

Author:
Stefan Thesing
Website: http://www.webdings.de

Constructor Summary

NeuronIDFinder(NeuralNet net)
Constructs a NeuronIDFinder that can search the specified NeuralNet.
NeuronIDFinder(Neuron[][] layers)
Constructs a NeuronIDFinder that can search the NeuralNet specified by its layers..

Method Summary

int
getLayerID(Neuron neuron)
int
getNeuronID(Neuron neuron)

Constructor Details

NeuronIDFinder

public NeuronIDFinder(NeuralNet net)
Constructs a NeuronIDFinder that can search the specified NeuralNet.

Parameters:
net -


NeuronIDFinder

public NeuronIDFinder(Neuron[][] layers)
Constructs a NeuronIDFinder that can search the NeuralNet specified by its layers..

Parameters:
layers -

Method Details

getLayerID

public int getLayerID(Neuron neuron)
            throws NeuronNotFoundException

Parameters:
neuron -

Returns:
The ID of the layer the specified neuron resides in.

Throws:
NeuronNotFoundException -


getNeuronID

public int getNeuronID(Neuron neuron)
            throws NeuronNotFoundException

Parameters:
neuron -

Returns:
The ID of the neuron within the layer it resides in.

Throws:
NeuronNotFoundException -


NeuronIDFinder.java - Copyright (c) 2005 by Stefan Thesing

This file is part of Jannis.

Jannis is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Jannis is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Jannis; if not, write to the
Free Software Foundation, Inc.,
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA



© 2005 by Stefan Thesing;
Verbatim copying and redistribution of this entire page are permitted provided this notice is preserved.