NAI
Perceptron

perceptron
Class Singleton

java.lang.Object
  |
  +--perceptron.PerceptronNet
        |
        +--perceptron.Singleton
Direct Known Subclasses:
Singleton2In, Singleton3In

public class Singleton
extends PerceptronNet

Sieć złożona z jednego perceptronu.

Author:
Bartłomiej Starosta

Fields inherited from class perceptron.PerceptronNet
inputs, net, outputs
 
Constructor Summary
Singleton(float t, float[] w)
          Tworzy nową sieć z jednym perceptronem.
 
Method Summary
 float getResult()
          Pobiera wartość z wyjścia.
 
Methods inherited from class perceptron.PerceptronNet
fire, getResult, getResultSet, setData, setData
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

Singleton

public Singleton(float t,
                 float[] w)
Tworzy nową sieć z jednym perceptronem. Jego parametry przekazane są jako argumenty.
Parameters:
t - wartość progowa
w - tablica wag
Method Detail

getResult

public float getResult()
Pobiera wartość z wyjścia.
Returns:
wartość na wyjściu sieci

NAI
Perceptron

Materiały dydaktyczne do zajęć NAI
Bartłomiej Starosta, barstar@pjwstk.edu.pl
PJWSTK 2001/2002