C++ Neural Networks and Fuzzy Logic: Preface


Header File for C++ Program for Hopfield Network



Download 1,14 Mb.
Pdf ko'rish
bet73/443
Sana29.12.2021
Hajmi1,14 Mb.
#77367
1   ...   69   70   71   72   73   74   75   76   ...   443
Bog'liq
C neural networks and fuzzy logic

Header File for C++ Program for Hopfield Network

Listing 4.1 contains Hop.h, the header file for the C++ program for the Hopfield network. The include files

listed in it are the stdio.h, iostream.h, and math.h. The iostream.h file contains the declarations and details of

the C++ streams for input and output. A network class and a neuron class, are declared in Hop.h. The data

members and member functions are declared within each class, and their accessibility is specified by the

keywords protected or public.



Listing 4.1 Header file for C++ program for Hopfield network.

//Hop.h      V. Rao, H. Rao

//Single layer Hopfield Network with 4 neurons

#include

#include

#include

class neuron

{

protected:



     int activation;

     friend class network;

public:

     int weightv[4];

     neuron() {};

     neuron(int *j) ;

     int act(int, int*);

};

class network



{

public:


     neuron   nrn[4];

     int output[4];

C++ Neural Networks and Fuzzy Logic:Preface

C++ Program for a Hopfield Network

56



     int threshld(int) ;

     void activation(int j[4]);

     network(int*,int*,int*,int*);

};


Download 1,14 Mb.

Do'stlaringiz bilan baham:
1   ...   69   70   71   72   73   74   75   76   ...   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