Esempio n. 1
0
        public static EternalizedTruthValue make(float frequency, float confidence)
        {
            EternalizedTruthValue result = new EternalizedTruthValue();

            result.frequency  = frequency;
            result.confidence = confidence;
            return(result);
        }
Esempio n. 2
0
        /**
         * From one moment to eternal
         * \param v1 Truth value of the premise
         * \return Truth value of the conclusion
         */
        public static EternalizedTruthValue eternalize(TruthValue v1)
        {
            float f1 = v1.frequency;
            float c1 = v1.confidence;
            float c  = UtilityFunctions.w2c(c1);

            return(EternalizedTruthValue.make(f1, c));
        }