C++ Neural Networks and Fuzzy Logic: Preface


Header File Listing 4.3 contains percept.h



Download 1,14 Mb.
Pdf ko'rish
bet86/443
Sana29.12.2021
Hajmi1,14 Mb.
#77367
1   ...   82   83   84   85   86   87   88   89   ...   443
Bog'liq
C neural networks and fuzzy logic

Header File

Listing 4.3 contains percept.h, the header file for the C++ program for the Perceptron network. percept.h

contains the declarations for three classes, one for input neurons, one for output neurons, and one for network.

Listing 4.3 The percept.h header file.

//percept.h        V. Rao, H. Rao

// Perceptron model

#include

#include

#include

class ineuron

{

protected:



     float weight;

     float activation;

     friend class oneuron;

public:


     ineuron() {};

     ineuron(float j) ;

     float act(float x);

};

class oneuron



{

protected:

     int output;

C++ Neural Networks and Fuzzy Logic:Preface

C++ Implementation of Perceptron Network

67



     float activation;

     friend class network;

public:

     oneuron() { };

     void actvtion(float x[4], ineuron *nrn);

     int outvalue(float j) ;

};

class network



{

public:


     ineuron   nrn[4];

     oneuron   onrn;

     network(float,float,float,float);

};


Download 1,14 Mb.

Do'stlaringiz bilan baham:
1   ...   82   83   84   85   86   87   88   89   ...   443




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish