找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
首页论坛EAHub 外汇论坛
查看: 37|回复: 0

创建模糊模型(类库文件1)

[复制链接]

4万

主题

54

回帖

4万

积分

管理员

积分
45954
发表于 2026-8-27 21:51:00 | 显示全部楼层 |阅读模式
#property strict
#include <Arrays\List.mqh>
#include "MembershipFunction.mqh"
#include "Helper.mqh"

class FuzzyTerm : public NamedValueImpl
  {
private:
   IMembershipFunction *m_mf;         // The membership function of the term
public:
FuzzyTerm(const string name,IMembershipFunction *mf)
     {
      NamedValueImpl::Name(name);
      m_mf=mf;
     }
~FuzzyTerm()
     {
      if(CheckPointer(m_mf)==POINTER_DYNAMIC)
        {
         delete m_mf;
        }
     }
virtual bool IsTypeOf(EnType type)
     {
return(type==TYPE_CLASS_FuzzyTerm);
     }
IMembershipFunction *MembershipFunction()
     {
return (m_mf);
     }
  };复制代码
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|EAHub外汇论坛

GMT+8, 2026-10-9 16:53 , Processed in 0.104809 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表