public FuzzyController()
        {
            m_PreProcessor = new PreProcessor();
            PreProcessor.MakeReady( m_PreProcessor );

            m_Fuzzifier = new Fuzzifier();
            Fuzzifier.MakeReady( m_Fuzzifier );
            Fuzzifier.LoadMemberFunctions( m_Fuzzifier, ".\\Fuzzeval.mf" );

            m_InferenceEngine = new InferenceEngine();
            InferenceEngine.MakeReady( m_InferenceEngine );

            m_Defuzzifier = new Defuzzifier();
            Defuzzifier.MakeReady( m_Defuzzifier );
        }
Exemple #2
0
        public FuzzyController()
        {
            m_PreProcessor = new PreProcessor();
            PreProcessor.MakeReady(m_PreProcessor);

            m_Fuzzifier = new Fuzzifier();
            Fuzzifier.MakeReady(m_Fuzzifier);
            Fuzzifier.LoadMemberFunctions(m_Fuzzifier, ".\\Fuzzeval.mf");

            m_InferenceEngine = new InferenceEngine();
            InferenceEngine.MakeReady(m_InferenceEngine);

            m_Defuzzifier = new Defuzzifier();
            Defuzzifier.MakeReady(m_Defuzzifier);
        }
Exemple #3
0
        public static void MakeReady( Defuzzifier defuzzifier )
        {
            defuzzifier.m_OutputValues.Clear();

            string line;
            char[] separator = {' ', '\t', '\n'};
            string[] tokens;
            string[] s = RuleOutputs.GetOutputs();
            for ( int i = 0; i < s.Length; i++ )
            {
                line = s[i].Trim();
                if ( line.Length > 0 && line[0] != ';' )
                {
                    tokens = line.Split( separator );
                    LinguisticOutputValue OutVal = new LinguisticOutputValue( tokens[0], double.Parse( tokens[1] ) );
                    defuzzifier.AddLinguisticOutVal( OutVal );
                }
            }
        }
Exemple #4
0
        public static void MakeReady(Defuzzifier defuzzifier)
        {
            defuzzifier.m_OutputValues.Clear();

            string line;

            char[]   separator = { ' ', '\t', '\n' };
            string[] tokens;
            string[] s = RuleOutputs.GetOutputs();
            for (int i = 0; i < s.Length; i++)
            {
                line = s[i].Trim();
                if (line.Length > 0 && line[0] != ';')
                {
                    tokens = line.Split(separator);
                    LinguisticOutputValue OutVal = new LinguisticOutputValue(tokens[0], double.Parse(tokens[1]));
                    defuzzifier.AddLinguisticOutVal(OutVal);
                }
            }
        }