C++ Neural Networks and Fuzzy Logic: Preface



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


     else

          cout<<"\n pattern= "<

          "  output = "<


          "  discrepancy occurred";

     }


cout<<"\n\n";

int patrn2[]= {0,1,0,1};

h1.activation(patrn2);

for(i=0;i<4;i++)

     {

     if (h1.output[i] == patrn2[i])



          cout<<"\n pattern= "<

C++ Neural Networks and Fuzzy Logic:Preface

Notes on the Header File Hop.h

58



          "  output = "<


     else

          cout<<"\n pattern= "<

          "  output = "<


          "  discrepancy occurred";

       }


}

Previous Table of Contents Next

Copyright ©

 IDG Books Worldwide, Inc.

C++ Neural Networks and Fuzzy Logic:Preface

Notes on the Header File Hop.h

59



C++ Neural Networks and Fuzzy Logic

by Valluru B. Rao

MTBooks, IDG Books Worldwide, Inc.



ISBN: 1558515526   Pub Date: 06/01/95

Previous Table of Contents Next



Comments on the C++ Program for Hopfield Network

Note the use of the output stream operator cout<< to output text strings or numerical output. C++ has istream

and ostream classes from which the iostream class is derived. The standard input and output streams are cin

and cout, respectively, used, correspondingly, with the operators >> and <<. Use of cout for the output stream

is much simpler than the use of the C function printf. As you can see, there is no formatting suggested for

output. However, there is a provision that allows you to format the output, while using cout.

Also note the way comments are introduced in the program. The line with comments should start with a

double slash //. Unlike C, the comment does not have to end with a double slash. Of course, if the comments

extend to subsequent lines, each such line should have a double slash at the start. You can still use the pair, /*

at the beginning with */ at the end of lines of comments, as you do in C. If the comment continues through

many lines, the C facility will be handier to delimit the comments.

The neurons in the network are members of the network class and are identified by the abbreviation nrn. The

two patterns, 1010 and 0101, are presented to the network one at a time in the program.


Download 1,14 Mb.

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