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)); }
public IList <Point> GetPoints(FuzzyTemperatureChangeTypes temperatureChange) { if (_fuzzyTemperatureChangeCurvePoints.ContainsKey(temperatureChange)) { return(_fuzzyTemperatureChangeCurvePoints[temperatureChange]); } throw new NotImplementedException($"Unknown {nameof(FuzzyTemperatureChangeTypes)} with value {temperatureChange}."); }