de.webdings.jannis.neuralnet

Class Pattern


public class Pattern
extends java.lang.Object

Pattern is used represent an input pattern or output pattern a neural net processes or produces.

Version:
0.1 10.08.2005

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

Field Summary

boolean[]
entries
The entries of the pattern.

Constructor Summary

Pattern(String entries)
Counstructs a Pattern from a String containing 0s and 1s, where 1 corresponds to true and 0 to false.
Pattern(boolean[] entries)
Constructs a Pattern from an array containing true or false, where true means the neuron is supposed to fire (for an input pattern) or it has fired (for an output pattern) and false means it is not supposed to fire or hasn't fired.
Pattern(char[] entries)
Counstructs a Pattern from an array containing 0s and 1s, where 1 corresponds to true and 0 to false.

Field Details

entries

public boolean[] entries
The entries of the pattern.

Constructor Details

Pattern

public Pattern(String entries)
            throws PatternCreateException
Counstructs a Pattern from a String containing 0s and 1s, where 1 corresponds to true and 0 to false.

Parameters:
entries -

Throws:
PatternCreateException - if the String contains characters other than 0 and 1


Pattern

public Pattern(boolean[] entries)
Constructs a Pattern from an array containing true or false, where true means the neuron is supposed to fire (for an input pattern) or it has fired (for an output pattern) and false means it is not supposed to fire or hasn't fired.

Parameters:
entries -


Pattern

public Pattern(char[] entries)
            throws PatternCreateException
Counstructs a Pattern from an array containing 0s and 1s, where 1 corresponds to true and 0 to false.

Parameters:
entries -

Throws:
PatternCreateException - if the array contains characters other than 0 and 1


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