climepi.epimod.ParameterizedSuitabilityModel.get_posterior_min_optimal_max_temperature#

ParameterizedSuitabilityModel.get_posterior_min_optimal_max_temperature(suitability_threshold=0)[source]#

Get posterior distributions of minimum, optimal, and maximum temperatures.

Calculates the posterior distributions of the minimum/maximum temperatures that are considered suitable, as well as the optimal temperature at which the suitability is at its peak.

Note that this method requires that the model has been fitted to data using fit_temperature_responses() and that the suitability table has been constructed using construct_suitability_table() before it can be called. Note also that this method will only work if suitability is a function of temperature only.

Parameters:

suitability_threshold (float, optional) – The threshold above which to consider the temperature values suitable. Default is 0.

Returns:

xarray.Dataset – A dataset containing the posterior distributions of the minimum, optimal, and maximum temperature values.