de.webdings.jannis.neuralnet

Class PatternGiver


public class PatternGiver
extends java.lang.Object

PatternGiver is used to present a NeuralNet with an input Pattern.

Version:
0.1 01.08.2005

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

Constructor Summary

PatternGiver(Neuron[] inputLayer, String fileName)
PatternGiver(Neuron[] inputLayer, Pattern[] pattern)

Method Summary

Neuron[]
getInputLayer()
Pattern[]
getPattern()
void
nextPattern()
Presents the net with the next pattern.
int
numberSent()
void
setInputLayer(Neuron[] inputLayer)
void
setPattern(Pattern[] pattern)

Constructor Details

PatternGiver

public PatternGiver(Neuron[] inputLayer,
                    String fileName)
            throws IOException,
                   PatternCreateException

Parameters:
inputLayer -
fileName -

Throws:
PatternCreateException -


PatternGiver

public PatternGiver(Neuron[] inputLayer,
                    Pattern[] pattern)

Parameters:
inputLayer -
pattern -

Method Details

getInputLayer

public Neuron[] getInputLayer()

Returns:
Returns the inputLayer.


getPattern

public Pattern[] getPattern()

Returns:
Returns the patterns.


nextPattern

public void nextPattern()
            throws PatternGiverReaderCommunicationException
Presents the net with the next pattern.

Throws:
PatternGiverReaderCommunicationException -


numberSent

public int numberSent()

Returns:
PatternGiver, i.e. the number of patterns the net has already been presented with.


setInputLayer

public void setInputLayer(Neuron[] inputLayer)

Parameters:
inputLayer - The inputLayer to set.


setPattern

public void setPattern(Pattern[] pattern)

Parameters:
pattern - The pattern to set.


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