Esempio n. 1
0
        public static string DefuzzMethodToString(DefuzzMethodType defuzzMethodType)
        {
            switch (defuzzMethodType)
            {
            case DefuzzMethodType.COA:
                return("COA");

            case DefuzzMethodType.COG:
                return("COG");

            case DefuzzMethodType.LOM:
                return("LOM");

            case DefuzzMethodType.MOM:
                return("MOM");

            case DefuzzMethodType.wtaver:
                return("wtaver");

            case DefuzzMethodType.wtsum:
                return("wtsum");

            case DefuzzMethodType.SOM:
            default:
                return("SOM");
            }
        }
Esempio n. 2
0
 public void CopyDataFrom(FuzzySystem otherFuzzySystem)
 {
     Name = otherFuzzySystem.Name;
     //Type = fuz.Type;
     Version      = otherFuzzySystem.Version;
     Inputs       = (InputOutput[])otherFuzzySystem.Inputs.Clone();
     Outputs      = (InputOutput[])otherFuzzySystem.Outputs.Clone();
     Rules        = (Rule[])otherFuzzySystem.Rules.Clone();
     AndMethod    = otherFuzzySystem.AndMethod;
     OrMethod     = otherFuzzySystem.OrMethod;
     ImpMethod    = otherFuzzySystem.ImpMethod;
     AggMethod    = otherFuzzySystem.AggMethod;
     DefuzzMethod = otherFuzzySystem.DefuzzMethod;
 }