xskillscore.Contingency.hit_rate

Contingency.hit_rate(yes_category=2)

Returns the hit rate(s) (probability of detection) for dichotomous contingency data.

\[HR = \frac{hits}{hits + misses}\]
Parameters

yes_category (value, optional) – The category coordinate value of the category corresponding to ‘yes’ (1 or 2)

Returns

An array containing the hit rate(s)

Return type

xarray.Dataset or xarray.DataArray

References

https://www.cawcr.gov.au/projects/verification/#Contingency_table