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
scipy.stats.rv_generic.cdfwithxarray.apply_ufuncXrRV.isf(*args[, apply_kwargs])Method wrapping
scipy.stats.rv_generic.isfwithxarray.apply_ufuncXrRV.logcdf(*args[, apply_kwargs])Method wrapping
scipy.stats.rv_generic.logcdfwithxarray.apply_ufuncXrRV.logsf(*args[, apply_kwargs])Method wrapping
scipy.stats.rv_generic.logsfwithxarray.apply_ufuncXrRV.ppf(*args[, apply_kwargs])Method wrapping
scipy.stats.rv_generic.ppfwithxarray.apply_ufuncXrRV.rvs(*args[, size, random_state, dims, ...])Method wrapping
scipy.stats.rv_discrete.rvswithxarray.apply_ufuncXrRV.sf(*args[, apply_kwargs])Method wrapping
scipy.stats.rv_generic.sfwithxarray.apply_ufunc