public FuzzyTermSet AddTriangularSet(string name, double minBound, double peakPoint, double maxBound) { AdjustRangetoFit(minBound, maxBound); FuzzySet f = new FuzzySet_Triangle(peakPoint, peakPoint - minBound, maxBound - peakPoint); MemberSets.Add(name, f); return(new FuzzyTermSet(f)); }
/// <summary> /// Adds a triangular shaped fuzzy set to the variable. /// </summary> /// <param name="name"></param> /// <param name="minBound"></param> /// <param name="peak"></param> /// <param name="maxBound"></param> /// <returns>Fuzzy set</returns> public FzSet AddTriangularSet(string name, double minBound, double peak, double maxBound) { _memberSets[name] = new FuzzySet_Triangle(peak, peak - minBound, maxBound - peak); AdjustRangeToFit(minBound, maxBound); return(new FzSet(_memberSets[name])); }