XrRV

class xarray_einstats.stats.XrRV(dist, *args, **kwargs)[source]

Base random variable wrapper class.

Most methods have a common signature between continuous and discrete variables in scipy. We define a base wrapper and then subclass it to add the specific methods like pdf or pmf.

Notes

One of the main goals of this library is ease of maintenance. We could wrap each distribution to preserve call signatures and avoid different behaviour between passing input arrays as args or kwargs, but so far we don’t consider what we’d won doing this to be worth the extra maintenance burden.

Methods

XrRV.__init__(dist, *args, **kwargs)

XrRV.cdf(*args[, apply_kwargs])

Method wrapping .cdf of the input distribution with xarray.apply_ufunc

XrRV.isf(*args[, apply_kwargs])

Method wrapping .isf of the input distribution with xarray.apply_ufunc

XrRV.logcdf(*args[, apply_kwargs])

Method wrapping .logcdf of the input distribution with xarray.apply_ufunc

XrRV.logsf(*args[, apply_kwargs])

Method wrapping .logsf of the input distribution with xarray.apply_ufunc

XrRV.ppf(*args[, apply_kwargs])

Method wrapping .ppf of the input distribution with xarray.apply_ufunc

XrRV.rvs(*args[, size, random_state, dims, ...])

Method wrapping .rvs of the input distribution with xarray.apply_ufunc

XrRV.sf(*args[, apply_kwargs])

Method wrapping .sf of the input distribution with xarray.apply_ufunc