C++ Neural Networks and Fuzzy Logic: Preface



Download 1,14 Mb.
Pdf ko'rish
bet235/443
Sana29.12.2021
Hajmi1,14 Mb.
#77367
1   ...   231   232   233   234   235   236   237   238   ...   443
Bog'liq
C neural networks and fuzzy logic

Classes to be Used

We use many of the classes from the backpropagation simulator. We require only two layers, the input layer

and the Kohonen layer. We make a new layer class called the Kohonen layer class, and a new network class

called the Kohonen_network.

C++ Neural Networks and Fuzzy Logic:Preface

C++ Code for Implementing a Kohonen Map

223



Revisiting the Layer Class

The layer class needs to be slightly modified, as shown in Listing 11.1.



Listing 11.1 Modification of layer.h

// layer.h             V.Rao, H. Rao

// header file for the layer class hierarchy and

// the network class

#define MAX_LAYERS    5

#define MAX_VECTORS   100

class network;

class Kohonen_network;

class layer

{

protected:



       int num_inputs;

       int num_outputs;

       float *outputs;// pointer to array of outputs

       float *inputs; // pointer to array of inputs, which

                                     // are outputs of some other layer

       friend network;



friend Kohonen_network; // update for Kohonen model

public:


       virtual void calc_out()=0;

};

...



Here the changes are indicated in italic. You notice that the Kohonen_network is made a friend to the layer

class, so that the Kohonen_network can have access to the data of a layer.




Download 1,14 Mb.

Do'stlaringiz bilan baham:
1   ...   231   232   233   234   235   236   237   238   ...   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