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