C++ Neural Networks and Fuzzy Logic: Preface


Header File As expected, the complement of the Y



Download 1,14 Mb.
Pdf ko'rish
bet195/443
Sana29.12.2021
Hajmi1,14 Mb.
#77367
1   ...   191   192   193   194   195   196   197   198   ...   443
Bog'liq
C neural networks and fuzzy logic

Header File

As expected, the complement of the Y of the exemplar is found to be associated with the complement of the X

of that pair. When the second input vector is presented, however, a new pair of associated vectors is found.

After the code is presented, we list the computer output also.



Listing 8.1 bamntwrk.h

//bamntwrk.h   V. Rao,  H. Rao

//Header file for BAM network program

#include

#include

#include

#define MXSIZ 10  // determines the maximum size of the network

class bmneuron

{

 protected:



       int nnbr;

       int inn,outn;

       int output;

       int activation;

       int outwt[MXSIZ];

       char *name;

       friend class network;

public:


    bmneuron() { };

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

};

class exemplar



{

protected:

       int xdim,ydim;

       int v1[MXSIZ],v2[MXSIZ];

       int u1[MXSIZ],u2[MXSIZ];

       friend class network;

C++ Neural Networks and Fuzzy Logic:Preface

Program Example for BAM

159



       friend class mtrx;

public:


       exemplar() { };

       void getexmplr(int,int,int *,int *);

       void prexmplr();

       void trnsfrm();

       void prtrnsfrm();

};

class asscpair



{

protected:

       int xdim,ydim,idn;

       int v1[MXSIZ],v2[MXSIZ];

       friend class network;

public:


       asscpair() { };

       void getasscpair(int,int,int);

       void prasscpair();

};

class potlpair



{

protected:

       int xdim,ydim;

       int v1[MXSIZ],v2[MXSIZ];

       friend class network;

public:


       potlpair() { };

       void getpotlpair(int,int);

       void prpotlpair();

};

class network



{

public:


       int  anmbr,bnmbr,flag,nexmplr,nasspr,ninpt;

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

       exemplar (e)[MXSIZ];

       asscpair (as)[MXSIZ];

       potlpair (pp)[MXSIZ];

       int outs1[MXSIZ],outs2[MXSIZ];

       int mtrx1[MXSIZ][MXSIZ],mtrx2[MXSIZ][MXSIZ];

       network() { };

       void getnwk(int,int,int,int [][6],int [][5]);

       void compr1(int,int);

       void compr2(int,int);

       void prwts();

       void iterate();

       void findassc(int *);

       void asgninpt(int *);

       void asgnvect(int,int *,int *);

       void comput1();

       void comput2();

       void prstatus();

};

C++ Neural Networks and Fuzzy Logic:Preface



Program Example for BAM

160



Source File

The program source file is presented as follows.

Previous Table of Contents Next

Copyright ©

 IDG Books Worldwide, Inc.

C++ Neural Networks and Fuzzy Logic:Preface

Source File

161




Download 1,14 Mb.

Do'stlaringiz bilan baham:
1   ...   191   192   193   194   195   196   197   198   ...   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