首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 脚本3模糊逻辑引擎

脚本3模糊逻辑引擎

  • 资源大小:3.54 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: 脚本 引擎 逻辑 模糊

资 源 简 介

For some questions, YES and NO are not the unique possible answers. Is it cold today? * Yes. * No. * Really could. * Kind of. * Errrr... * Not that could. To model this kind of situation, we can use Fuzzy Logic. Nuvem is a Fuzzy Logic Engine for Actionscript 3. Usage: Create the membership functions (fuzzification) var hot:Function = FuzzyEngine.createLinearMembershipFunction(20, 40);var warm:Function = FuzzyEngine.createTriangularMembershipFunction(10, 20, 30);var cold:Function = FuzzyEngine.createLinearMembershipFunction(20, 0); Eval based on your rules var value:Number = FuzzyEngine.eval( "(((TEMPERATURE IS HOT) OR (TEMPERATURE IS WARM)) AND NOT (TEMPERATURE IS COLD))", {TEMPERATURE:t}, // Input values to be fuzzyficated {HOT:hot, WARM:warm, COLD:cold} // Membership functions); Defuzzificate it
VIP VIP
0.226910s