コード例 #1
0
 private double GetFuzzyDegreeByValue(FuzzyDiffTemperatureTypes fuzzyDiffTemperatureType, double diffTemperature)
 {
     if (!_fuzzyDiffTemperatureCurvePoints.ContainsKey(fuzzyDiffTemperatureType))
     {
         throw new NotImplementedException($"Unknown {nameof(FuzzyDiffTemperatureTypes)} with value {fuzzyDiffTemperatureType}.");
     }
     return(GetFuzzyDegreeByValue(_fuzzyDiffTemperatureCurvePoints[fuzzyDiffTemperatureType], diffTemperature));
 }
コード例 #2
0
 public IList <Point> GetPoints(FuzzyDiffTemperatureTypes fuzzyDiffTemperature)
 {
     if (_fuzzyDiffTemperatureCurvePoints.ContainsKey(fuzzyDiffTemperature))
     {
         return(_fuzzyDiffTemperatureCurvePoints[fuzzyDiffTemperature]);
     }
     throw new NotImplementedException($"Unknown {nameof(FuzzyDiffTemperatureTypes)} with value {fuzzyDiffTemperature}.");
 }