예제 #1
0
 private double GetFuzzyDegreeByValue(FuzzyTemperatureChangeTypes fuzzyTemperatureChangeType, double temperatureChange)
 {
     if (!_fuzzyTemperatureChangeCurvePoints.ContainsKey(fuzzyTemperatureChangeType))
     {
         throw new NotImplementedException($"Unknown {nameof(FuzzyTemperatureChangeTypes)} with value {fuzzyTemperatureChangeType}.");
     }
     return(GetFuzzyDegreeByValue(_fuzzyTemperatureChangeCurvePoints[fuzzyTemperatureChangeType], temperatureChange));
 }
예제 #2
0
 public IList <Point> GetPoints(FuzzyTemperatureChangeTypes temperatureChange)
 {
     if (_fuzzyTemperatureChangeCurvePoints.ContainsKey(temperatureChange))
     {
         return(_fuzzyTemperatureChangeCurvePoints[temperatureChange]);
     }
     throw new NotImplementedException($"Unknown {nameof(FuzzyTemperatureChangeTypes)} with value {temperatureChange}.");
 }