de.webdings.jannis.neuralnet

Class PatternReader


public class PatternReader
extends java.lang.Object

PatternReader is used to read the output produced by a NeuralNet. The output is stored in an array of Patterns. It can also export the output to a java.util.String of '0's and '1's.

Version:
0.1 10.08.2005

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

Field Summary

protected int
numberOfPatternsToRead
Well, the number of patterns to read...

Constructor Summary

PatternReader(Neuron[] outputLayer, int numberOfPatternsToRead)

Method Summary

String
exportPattern()
int
getNumberOfPatternsToRead()
Neuron[]
getOutputLayer()
Pattern[]
getPattern()
int
numberOfPatternsRead()
void
readPattern()
reads the current output of the neural net
void
setNumberOfPatternsToRead(int numberOfPatternsToRead)
void
setOutputLayer(Neuron[] outputLayer)

Field Details

numberOfPatternsToRead

protected int numberOfPatternsToRead
Well, the number of patterns to read...

Constructor Details

PatternReader

public PatternReader(Neuron[] outputLayer,
                     int numberOfPatternsToRead)

Parameters:
outputLayer -
numberOfPatternsToRead -

Method Details

exportPattern

public String exportPattern()

Returns:
a java.lang.String containing '0's and '1's that represents the read output patterns.


getNumberOfPatternsToRead

public int getNumberOfPatternsToRead()

Returns:
Returns the numberOfPatternsToRead.


getOutputLayer

public Neuron[] getOutputLayer()

Returns:
Returns the outputLayer.


getPattern

public Pattern[] getPattern()

Returns:
Returns the patterns read from the net.


numberOfPatternsRead

public int numberOfPatternsRead()

Returns:
the number of patterns that have already been read


readPattern

public void readPattern()
            throws PatternGiverReaderCommunicationException
reads the current output of the neural net

Throws:
PatternGiverReaderCommunicationException -


setNumberOfPatternsToRead

public void setNumberOfPatternsToRead(int numberOfPatternsToRead)

Parameters:
numberOfPatternsToRead - The numberOfPatternsToRead to set.


setOutputLayer

public void setOutputLayer(Neuron[] outputLayer)

Parameters:
outputLayer - The outputLayer to set.


PatternReader.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.