public double ConvertResistanceToTemperatureCelcius(ThermistorModelParameters thermistorModelParameters, double resistanceOhms)
 {
     if (thermistorModelParameters.ThermistorModel == ThermistorModel.BetaModel) {
         return ConvertResistanceToTemperatureCelciusUsingBetaModel(thermistorModelParameters.BetaParameters, resistanceOhms);
     }
     //  else must be Steinhart-Hart
     return ConvertResistanceToTemperatureCelciusUsingSteinhartHartModel(thermistorModelParameters.SteinhartHartParameters, resistanceOhms);
 }
 public double ConvertResistanceToTemperatureCelcius(ThermistorModelParameters thermistorModelParameters, double resistanceOhms)
 {
     if (thermistorModelParameters.ThermistorModel == ThermistorModel.BetaModel)
     {
         return(ConvertResistanceToTemperatureCelciusUsingBetaModel(thermistorModelParameters.BetaParameters, resistanceOhms));
     }
     //  else must be Steinhart-Hart
     return(ConvertResistanceToTemperatureCelciusUsingSteinhartHartModel(thermistorModelParameters.SteinhartHartParameters, resistanceOhms));
 }