/// <summary>
 /// Initializes a new instance of the <see cref="SugenoInferenceEngine"/> class.
 /// </summary>
 /// <param name="tnorm">
 /// The t-norm function.
 /// </param>
 /// <param name="tconorm">
 /// The t-conorm function.
 /// </param>
 /// <param name="defuzzifier">
 /// The de-fuzzifier.
 /// </param>
 public SugenoInferenceEngine(
     ITriangularNorm tnorm,
     ITriangularConorm tconorm,
     IDefuzzifier defuzzifier)
     : base(tnorm, tconorm, defuzzifier)
 {
 }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FuzzyEvaluator"/> class.
        /// </summary>
        /// <param name="tnorm">
        /// The t-norm function.
        /// </param>
        /// <param name="tconorm">
        /// The t-conorm function.
        /// </param>
        public FuzzyEvaluator(ITriangularNorm tnorm, ITriangularConorm tconorm)
        {
            Validate.NotNull(tnorm, nameof(tnorm));
            Validate.NotNull(tconorm, nameof(tconorm));

            this.triangularNorm   = tnorm;
            this.triangularConorm = tconorm;
        }
Exemplo n.º 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FuzzyInferenceEngine"/> class.
        /// </summary>
        /// <param name="tnorm">
        /// The t-norm function.
        /// </param>
        /// <param name="tconorm">
        /// The t-conorm function.
        /// </param>
        /// <param name="defuzzifier">
        /// The de-fuzzifier.
        /// </param>
        protected FuzzyInferenceEngine(
            ITriangularNorm tnorm,
            ITriangularConorm tconorm,
            IDefuzzifier defuzzifier)
        {
            Validate.NotNull(tnorm, nameof(tnorm));
            Validate.NotNull(tconorm, nameof(tconorm));
            Validate.NotNull(defuzzifier, nameof(defuzzifier));

            this.Database    = new Database();
            this.Rulebase    = new Rulebase();
            this.Evaluator   = new FuzzyEvaluator(tnorm, tconorm);
            this.Defuzzifier = defuzzifier;
        }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FuzzyEvaluator"/> class.
 /// </summary>
 public FuzzyEvaluator()
 {
     this.triangularNorm   = TriangularNormFactory.MinimumTNorm();
     this.triangularConorm = TriangularConormFactory.MaximumTConorm();
 }