コード例 #1
0
 public void SetValues(MembershipFunction function)
 {
     a = function.a;
     b = function.b;
     alpha = function.alpha;
     beta = function.beta;
 }
コード例 #2
0
ファイル: Rule.cs プロジェクト: njss/Fuzzy-Logic-Controller
        public Rule(String Label, MembershipFunction F1, MembershipFunction F2, MembershipFunction Output)
        {
            if (F1.Min != F2.Min || F1.Max != F2.Max)
                throw new InvalidRangeException("The membership functions must be defined on the same range");

            this.label = Label;
            this.F1 = F1;
            this.F2 = F2;
            this.Output = Output;
        }
コード例 #3
0
ファイル: Rule.cs プロジェクト: rudrp/Fuzzy-Logic-Controller
        public Rule(String Label, MembershipFunction F1, MembershipFunction F2, MembershipFunction Output)
        {
            if (F1.Min != F2.Min || F1.Max != F2.Max)
            {
                throw new InvalidRangeException("The membership functions must be defined on the same range");
            }

            this.label  = Label;
            this.F1     = F1;
            this.F2     = F2;
            this.Output = Output;
        }
コード例 #4
0
 public FunctionControl(MembershipFunction function)
 {
     InitializeComponent();
     SetValues(function);
 }
コード例 #5
0
 private List<Point> BuildGraph(MembershipFunction mf)
 {
     return BuildGraph(mf.values);
 }