Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Args:
forecast (xr.object): Forecast with ``member`` dim.
cdf_or_dist (callable or scipy.stats.distribution): Function which returns the
cumulative density of the forecast distribution at value x.
xmin (float): Lower bounds for integration.
xmax (float): Upper bounds for integration.
tol (float, optional): The desired accuracy of the CRPS. Larger values will
speed up integration. If ``tol`` is set to ``None``,
bounds errors or integration tolerance errors will be
ignored.
See also:
* properscoring.crps_quadrature
* xskillscore.crps_quadrature
"""
return crps_quadrature(forecast, cdf_or_dist, xmin, xmax, tol)