// Constructor
 public MembershipFunction(string linguisticsVal, string expression, double xstart = 0, double xlength = 1, double lweight = 1)
 {
     this.membershipValue      = new MembershipValue(linguisticsVal);
     this.membershipExpression = expression;
     this.start  = xstart;
     this.length = xlength;
     this.weight = lweight;
 }
Exemplo n.º 2
0
        public static MembershipValue fromJson(string JsonData)
        {
            JSONObject      MVJSO  = new JSONObject(JsonData);
            MembershipValue result = new MembershipValue(
                MVJSO.GetField("Name").str,
                MVJSO.GetField("Value").n);

            return(result);
        }
Exemplo n.º 3
0
 // Constructor //
 public LinguisticRule(string rulval, string rule, double rWeight = -1)
 {
     this.membershipValue = new MembershipValue(rulval);
     this.actualRule      = rule;
     this.ruleWeight      = rWeight;
 }