亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? demo12_9.cpp

?? 游戲的聲音圖像演示程序
?? CPP
字號:
// DEMO12_9.CPP - Fuzzy Lingustic Variable manifold demo 
// note, I used a little C++ for fun, so you straight C guys pay
// attention

// INCLUDES ///////////////////////////////////////////////////////////////

#define WIN32_LEAN_AND_MEAN  // make sure certain headers are included correctly

#include <windows.h>         // include the standard windows stuff
#include <windowsx.h>        // include the 32 bit stuff
#include <conio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <math.h>
#include <io.h>
#include <fcntl.h>
#include <iostream.h>

// DEFINES ///////////////////////////////////////////////////////////////


// TYPES //////////////////////////////////////////////////////////////////


// CLASSES ///////////////////////////////////////////////////////////////

// this holds a single fuzzy linguistic variable
class CFLV 
      {
      private:

      char name[80];         // name of FLV  
      float min_range;       // start value of triangle
      float max_range;       // end value of triangle

      public:
      
      // constructors
      CFLV(char *nameflv, float min, float max) { strcpy(name, nameflv); min_range = min; max_range = max; }
      CFLV()  {min_range = 0; max_range = 0; }

      // destructor
      ~CFLV() {}

      // method to set range
      void CSetRange(float min, float max) { min_range = min; max_range = max; }

      // data access member
      char *GetName() {return(name);}

      // method to compute degree of membershiop
      float DegreeOfMembership(float xi)
            {
            // this method computes the degree of membership for the give input
            // if any and returns the value
   
            float degree_of_membership = 0.0,
                  slope                = 0.0;

           // first test if the input is in range
           if (xi >= min_range && xi <= max_range)
              {
              // compute intersection with left edge or right
              // always assume height of triangle is 1.0
              float center_point = (max_range + min_range)/2;

             // compare xi to center
             if (xi <= center_point)
                {
                // compute intersection on left edge
                // dy/dx = 1.0/(center - left)
                slope = 1.0/(center_point - min_range);
                degree_of_membership = (xi - min_range) * slope;

                } // end if
             else
                {
                // compute intersection on right edge
                // dy/dx = 1.0/(center - right)
                slope = 1.0/(center_point - max_range);
                degree_of_membership = (xi - max_range) * slope;
                } // end else

             } // end if
          else // not in range
             degree_of_membership = 0.0;

            // return value
            return(degree_of_membership);

            } // end DegreeOfMembership
      }; // end class CFLV

// create a pointer type of class
typedef CFLV *CFLV_PTR;

// this holds the manifold
class CFuzzyManifold
      {
      private:
 
      float domain_min;    // the range of the domain
      float domain_max;

      int num_flvs;        // number of fuzzy linguistic variables

      CFLV_PTR flvs[16];   // pointer to array of flvs, hold up to 16

      public: 

      // constructors
      CFuzzyManifold() { domain_min = 0; domain_max = 0; num_flvs = 0; }
      
      CFuzzyManifold(float min, float max) { domain_min = min; domain_max = max; }

      // destructor
      ~CFuzzyManifold() { for (int index=0; index < num_flvs; free(flvs[index++])); }

      // data access members
      float GetMin() {return(domain_min);}
      float GetMax() {return(domain_max);}
      
      // used to set the domain
      void SetDomain(float min, float max) { domain_min = min; domain_max = max; }

      // this method is used to enter in an FLV
      void EnterFLV(char *name, float min, float max)
          {
          // create a new flv
          flvs[num_flvs++] = new CFLV(name, min, max);

          } // end EnterFLV

      // this tests the membership of the input against all flvs
      // and prints out the results
      void PrintMemberships(float xi)
           {
           cout << "\nMemberships are:";           

           float sum = 0; // used to normalize data
 
           // for each category, that is FLV in manifold test the degree of membership
           for (int index=0; index < num_flvs; index++)
               { 
               cout << "\nDegree of membership for '" <<  flvs[index]->GetName() << "' ";
               cout << "is " << flvs[index]->DegreeOfMembership(xi);
       
               // add dom to sum
               sum+=flvs[index]->DegreeOfMembership(xi);
               } // end for index  

           cout << "\nand the normalized memberships are:";
           for (index=0; index < num_flvs; index++)
               { 
               cout << "\nNormalized Degree of membership for '" <<  flvs[index]->GetName() << "' ";
               cout << "is " << flvs[index]->DegreeOfMembership(xi)/sum;
               } // end for index  

            cout << "\n";
           }  // end PrintMemberships
     
      }; // end class CFuzzyManifold

typedef CFuzzyManifold *CFuzzyManifold_PTR;

// PROTOTYPES ////////////////////////////////////////////////////////////



// GLOBALS //////////////////////////////////////////////////////////////



// FUNCTIONS ////////////////////////////////////////////////////////////



// MAIN /////////////////////////////////////////////////////////////////

void main()
{

float min,  // used to input ranges
      max,
      xi;   // used for inputs

char name[80];  // used for string names

int num_flvs = 0;  // track number of flvs

CFuzzyManifold manifold; // the manifold

// begin code

// show sequence/instructions
cout << "\nFUZZiCON - Fuzzy Manifold Construction Kit\n";
cout << "\nStep 1: Enter the domain range of input variable.";
cout << "\nStep 2: Enter in the number of FLVs.";
cout << "\nStep 3: Enter data for each of the FLVs.\n";

cout << "\nBegin Fuzzy Manifold Construction...\n";


// get domain range
cout << "\nStep 1: Domain Range input.";
cout << "\nEnter Domain Range Minimum of Fuzzy Input Variable?";
cin >> min;

cout << "Enter Domain Range Maximum of Fuzzy Input Variable?";
cin >> max;

// set the domain of the manifold
manifold.SetDomain(min,max);

// enter number of flvs
cout << "\nStep 2: Number of FLVs";
cout << "\nEnter the number of Fuzzy Linguistic Variables in your fuzzy manifold?";
cin >> num_flvs;

cout << "\nStep 3: FLV data entry loop";

// get each of the flvs
for (int index=0; index < num_flvs; index++)
    {
    cout << "\nEnter Name of Fuzzy Linguistic Variable #" << index+1 << "?";
    cin >> name;

    cout << "\nEnter Minimum of Fuzzy Linguistic Variable #" << index+1 << "?";
    cin >> min;

    cout << "Enter Maximum of Fuzzy Linguistic Variable #" << index+1 << "?";    
    cin >> max;

    // create the flv in the manifold
    manifold.EnterFLV(name, min, max);

    } // end for index

cout << "\nFuzzy Manifold is ready to take input values \nand compute the degree of membership(s)!\n";

// input membership loop
while(1)
     {
     cout << "\nEnter input value to test in range " << manifold.GetMin() << " to " << manifold.GetMax() << "?";
     cin >> xi;

     // test membership in each flv
     manifold.PrintMemberships(xi);

     } // end while

} // end main

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久福利资源站| 欧美伊人精品成人久久综合97| 国产日产欧美精品一区二区三区| 国产精品一区二区视频| 国产丝袜欧美中文另类| 成人伦理片在线| 亚洲狠狠丁香婷婷综合久久久| 欧美日韩国产综合一区二区| 精品一区精品二区高清| 国产日韩欧美电影| 色综合激情五月| 日韩综合小视频| 久久久久国产精品免费免费搜索| 成人av资源网站| 亚洲成人免费看| www国产成人免费观看视频 深夜成人网| 高清beeg欧美| 亚洲成人av一区二区| 精品国产污网站| 色综合色综合色综合色综合色综合 | 91影视在线播放| 性做久久久久久久久| 精品欧美一区二区在线观看| 成人黄色电影在线| 午夜婷婷国产麻豆精品| 久久综合一区二区| 91福利在线导航| 久久99精品久久久久| 自拍偷自拍亚洲精品播放| 51午夜精品国产| 不卡高清视频专区| 日本伊人色综合网| 中文字幕一区二区三区精华液| 91精品视频网| av电影一区二区| 日本成人在线视频网站| 国产精品家庭影院| 日韩一级高清毛片| 色久综合一二码| 国模无码大尺度一区二区三区| 亚洲视频免费观看| 日韩美女主播在线视频一区二区三区| 成人av第一页| 免费精品视频在线| 亚洲精品久久嫩草网站秘色| 精品粉嫩aⅴ一区二区三区四区| 99久久99久久综合| 精品一区二区综合| 亚洲成人av一区二区| 国产精品久久毛片| 精品国产欧美一区二区| 色香蕉成人二区免费| 国产在线不卡一卡二卡三卡四卡| 亚洲精品视频免费看| 久久久欧美精品sm网站| 欧美高清一级片在线| 91社区在线播放| 国产一区二区三区观看| 五月婷婷色综合| 亚洲私人黄色宅男| 久久精品欧美日韩精品| 欧美高清性hdvideosex| 日本精品一区二区三区四区的功能| 国产在线一区观看| 天堂久久一区二区三区| 亚洲综合一区二区精品导航| 国产欧美一区二区精品性| 日韩视频在线你懂得| 欧美日韩亚洲综合一区| 色天天综合色天天久久| 成人午夜精品一区二区三区| 久久福利资源站| 日韩精品亚洲专区| 亚洲一卡二卡三卡四卡| 中文字幕亚洲区| 中文字幕巨乱亚洲| 久久伊人中文字幕| 日韩午夜电影在线观看| 欧美裸体一区二区三区| 欧美少妇一区二区| 91久久线看在观草草青青| 波多野结衣一区二区三区| 精品一区二区免费看| 日韩av网站免费在线| 亚洲bt欧美bt精品777| 一区二区成人在线| 亚洲精品免费看| **欧美大码日韩| 中文字幕一区日韩精品欧美| 国产精品色婷婷| 国产精品欧美一级免费| 欧美激情艳妇裸体舞| 欧美激情在线一区二区| 国产欧美日韩激情| 国产日韩高清在线| 国产欧美一区二区精品性色超碰| 久久色在线观看| 国产亚洲欧美中文| 久久久777精品电影网影网| 精品福利av导航| 久久久亚洲精华液精华液精华液| xf在线a精品一区二区视频网站| 日韩视频在线观看一区二区| 日韩精品最新网址| 日韩视频在线一区二区| 欧美tickling挠脚心丨vk| 精品国产露脸精彩对白| 26uuu色噜噜精品一区二区| 26uuu国产一区二区三区| 亚洲精品一区二区三区影院 | 丁香另类激情小说| 国产91精品欧美| av不卡免费在线观看| 色综合天天性综合| 欧美特级限制片免费在线观看| 欧美亚州韩日在线看免费版国语版 | 成人av在线一区二区| av激情成人网| 色偷偷久久人人79超碰人人澡| 91黄色激情网站| 8v天堂国产在线一区二区| 日韩欧美亚洲国产另类| 久久亚洲一区二区三区四区| 国产亚洲综合av| 国产精品国产馆在线真实露脸 | 亚洲v精品v日韩v欧美v专区| 三级在线观看一区二区| 麻豆精品一区二区| 国产精品一区二区果冻传媒| 成人综合在线网站| 一本一道久久a久久精品| 欧美三级视频在线播放| 欧美va亚洲va| 国产精品久久免费看| 亚洲国产精品影院| 久久精品国产第一区二区三区| 国产一区二三区| 波多野结衣亚洲| 欧美日韩视频在线第一区 | 日韩精品在线网站| 欧美激情一二三区| 亚洲一区二区三区视频在线播放 | 国产经典欧美精品| 97久久精品人人做人人爽| 欧美午夜免费电影| 日韩欧美国产一区二区三区| 国产视频亚洲色图| 亚洲精品免费播放| 看片网站欧美日韩| bt欧美亚洲午夜电影天堂| 欧美私人免费视频| 久久久不卡网国产精品一区| 一区二区三区在线看| 久久精品国内一区二区三区| 成人av电影在线播放| 9191国产精品| 欧美高清一级片在线观看| 亚洲午夜精品网| 国产盗摄视频一区二区三区| 色呦呦一区二区三区| 精品精品国产高清一毛片一天堂| 中文字幕亚洲在| 美女一区二区三区| 91免费视频网| 精品少妇一区二区三区免费观看 | 夜夜亚洲天天久久| 国内精品在线播放| 欧美亚洲综合色| 久久久久久久综合日本| 亚洲综合色成人| 国产精品一区二区三区四区 | 国产色婷婷亚洲99精品小说| 亚洲午夜影视影院在线观看| 久久成人免费网| 日本精品裸体写真集在线观看| 亚洲精品一区二区三区香蕉| 亚洲一二三专区| 成人免费视频播放| 日韩一卡二卡三卡国产欧美| 亚洲精品一二三| 国产精品 欧美精品| 欧美性猛交一区二区三区精品| 国产人妖乱国产精品人妖| 午夜精品久久久久| 91视频一区二区三区| 久久久久国产精品麻豆 | 亚洲成人一区在线| av资源站一区| 精品国产精品一区二区夜夜嗨| 亚洲动漫第一页| av爱爱亚洲一区| 国产日韩av一区二区| 裸体一区二区三区| 日本二三区不卡| 国产精品对白交换视频| 国产一区二区日韩精品| 欧美电影一区二区| 一区二区三区资源| 成人的网站免费观看| 久久嫩草精品久久久久|