Ejemplo n.º 1
0
        protected internal string msSetName; // Set name

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Create a new Fuzzy Set
        /// </summary>
        /// <param name="setType"></param>
        /// <param name="setName"></param>
        /// <param name="parentVar"></param>
        /// <param name="alphaCut"></param>
        /// <param name="domainLo"></param>
        /// <param name="domainHi"></param>
        protected internal FuzzySet(EnumFuzzySetType setType, string setName, ContinuousFuzzyRuleVariable parentVar, double alphaCut, double domainLo, double domainHi)
        {
            meSetType = setType;
            msSetName = setName;
            moParentVar = parentVar;
            mdAlphaCut = alphaCut;
            mdDomainLo = domainLo;
            mdDomainHi = domainHi;
            mdTruthVector = new double[Constants.FUZZY_MAXVALUES];
            for (int i = 0; i < Constants.FUZZY_MAXVALUES; i++)
            {
                mdTruthVector[i] = 0.0;
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new Fuzzy Set
 /// </summary>
 /// <param name="setType"></param>
 /// <param name="setName"></param>
 /// <param name="parentVar"></param>
 /// <param name="alphaCut"></param>
 protected internal FuzzySet(EnumFuzzySetType setType, string setName, ContinuousFuzzyRuleVariable parentVar, double alphaCut)
     : this(setType, setName, parentVar, alphaCut, 0.0, 0.0)
 {
 }