C++ Neural Networks and Fuzzy Logic: Preface


name that identifies the category, e.g. “tight.” Various member functions are used to interface to the private data members. There is setval()



Download 1,14 Mb.
Pdf ko'rish
bet60/443
Sana29.12.2021
Hajmi1,14 Mb.
#77367
1   ...   56   57   58   59   60   61   62   63   ...   443
Bog'liq
C neural networks and fuzzy logic

name that identifies the category, e.g. “tight.” Various member functions are used to interface to the private

data members. There is setval(), for example, which lets you set the value of the three parameters, while



gethighval() returns the value of the parameter highval. The function getshare() returns the relative value of

membership in a category given an input. In the example discussed earlier, with the number 8.0 as the Fed

discount rate and the category tight defined according to the graph in Figure 3.2, getshare() would return 0.8.

Note that this is not yet normalized. Following this example, the getshare() value from the accommodative

category would also be used to determine the membership weights. These weights define a probability in a

given category. A random number generator is used to define a value that is used to select a fuzzy category

based on the probabilities defined.

Listing 3.1 fuzzfier.h

// fuzzfier.h V. Rao, H. Rao

// program to fuzzify data

class category

{

private:


     char name[30];

     float   lowval,highval,midval;

public:

     category(){};

     void setname(char *);

     char * getname();

     void setval(float&,float&,float&);

     float getlowval();

     float getmidval();

     float gethighval();

     float getshare(const float&);

     ~category(){};

};

int randnum(int);



Previous Table of Contents Next

Copyright ©

 IDG Books Worldwide, Inc.

C++ Neural Networks and Fuzzy Logic:Preface

Code for the Fuzzifier

43




Download 1,14 Mb.

Do'stlaringiz bilan baham:
1   ...   56   57   58   59   60   61   62   63   ...   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