config.cs

来自「Fuzzy logic controller that uses mamdani」· CS 代码 · 共 63 行

CS
63
字号
using System;
using System.Collections.Generic;
using System.Text;

namespace FuzzyLogicController.RuleEngine
{
    public class Config
    {
        private ImpMethod _implication;
        private ConnMethod _andlogic;
        private DefuzzifcationType _defuzType;

        #region Constructor
        public Config(ImpMethod Imp, ConnMethod And)
        {
            _implication = Imp;
            _andlogic = And;
        }
        #endregion

        #region Getter & setter
        public ImpMethod Implication
        {
            get { return _implication; }
            set { _implication = value; }
        }

        public ConnMethod Logic
        {
            get { return _andlogic; }
            set { _andlogic = value; }
        }

        public DefuzzifcationType DefuzzificationType
        {
            get { return _defuzType; }
            set { _defuzType = value; }
        }

        #endregion

    }

    public enum DefuzzifcationType
    {
        Centroid = 0,
        ModifiedHeight =1
    }

   public enum ImpMethod
    {
        Min = 0,
        Prod = 1
    };

    public enum ConnMethod
    {
        Min = 0,
        Prod = 1
    };

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?