C++ Neural Networks and Fuzzy Logic: Preface



Download 1,14 Mb.
Pdf ko'rish
bet222/443
Sana29.12.2021
Hajmi1,14 Mb.
#77367
1   ...   218   219   220   221   222   223   224   225   ...   443
Bog'liq
C neural networks and fuzzy logic

C++ Implementation

Again, the algorithm for ART1 processing as given in Freeman and Skapura is followed for our C++

implementation. Our objective in programming ART1 is to provide a feel for the workings of this paradigm

with a very simple program implementation. For more details on the inner workings of ART1, you are

encouraged to consult Freeman and Skapura, or other references listed at the back of the book.

A Header File for the C++ Program for the ART1 Model Network

The header file for the C++ program for the ART1 model network is art1net.hpp. It contains the declarations

for two classes, an artneuron class for neurons in the ART1 model, and a network class, which is declared as

a friend class in the artneuron class. Functions declared in the network class include one to do the iterations

for the network operation, finding the winner in a given iteration, and one to inquire if reset is needed.

C++ Neural Networks and Fuzzy Logic:Preface

Other Models

203



//art1net.h   V. Rao,  H. Rao

//Header file for ART1 model network program

#include

#define MXSIZ 10

class artneuron

{

protected:



       int nnbr;

       int inn,outn;

       int output;

       double activation;

       double outwt[MXSIZ];

       char *name;

       friend class network;

public:


       artneuron() { };

       void getnrn(int,int,int,char *);

};

class network



{

public:


       int  anmbr,bnmbr,flag,ninpt,sj,so,winr;

       float ai,be,ci,di,el,rho;

       artneuron (anrn)[MXSIZ],(bnrn)[MXSIZ];

       int outs1[MXSIZ],outs2[MXSIZ];

       int lrndptrn[MXSIZ][MXSIZ];

       double acts1[MXSIZ],acts2[MXSIZ];

       double mtrx1[MXSIZ][MXSIZ],mtrx2[MXSIZ][MXSIZ];

       network() { };

       void getnwk(int,int,float,float,float,float,float);

       void prwts1();

       void prwts2();

       int winner(int k,double *v,int);

       void practs1();

       void practs2();

       void prouts1();

       void prouts2();

       void iterate(int *,float,int);

       void asgninpt(int *);

       void comput1(int);

       void comput2(int *);

       void prlrndp();

       void inqreset(int);

       void adjwts1();

       void adjwts2();

};

Previous Table of Contents Next



Copyright ©

 IDG Books Worldwide, Inc.

C++ Neural Networks and Fuzzy Logic:Preface

Other Models

204




Download 1,14 Mb.

Do'stlaringiz bilan baham:
1   ...   218   219   220   221   222   223   224   225   ...   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