Пример #1
0
        public void GetMembershipFunctions(out IMemebershipFunction cold, out IMemebershipFunction warm, out IMemebershipFunction hot)
        {
            Coords c0;
            Coords c1;
            Coords c2;

            c0.X = -270;
            c0.Y = 1;
            c1.X = 5;
            c1.Y = 1;
            c2.X = 20;
            c2.Y = 0;
            cold = new TriangularMemebershipFunction(c0, c1, c2);

            c0.X = 5;
            c0.Y = 0;
            c1.X = 20;
            c1.Y = 1;
            c2.X = 30;
            c2.Y = 0;
            warm = new TriangularMemebershipFunction(c0, c1, c2);

            c0.X = 20;
            c0.Y = 0;
            c1.X = 30;
            c1.Y = 1;
            c2.X = 100;
            c2.Y = 1;
            hot  = new TriangularMemebershipFunction(c0, c1, c2);
        }
Пример #2
0
 public void Set(T linguisticVariable, IMemebershipFunction fx)
 {
     this.Set(new FuzzyVariable <T>(linguisticVariable, fx));
 }
Пример #3
0
 public FuzzyVariable(T linguisticVariable, IMemebershipFunction membershipFunction)
 {
     FuzzyUtils.IsGenericParameterValid <T>();
     this.LinguisticVariable = linguisticVariable;
     this.MembershipFunction = membershipFunction;
 }