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
.cdfof the input distribution withxarray.apply_ufuncXrRV.isf(*args[, apply_kwargs])Method wrapping
.isfof the input distribution withxarray.apply_ufuncXrRV.logcdf(*args[, apply_kwargs])Method wrapping
.logcdfof the input distribution withxarray.apply_ufuncXrRV.logsf(*args[, apply_kwargs])Method wrapping
.logsfof the input distribution withxarray.apply_ufuncXrRV.ppf(*args[, apply_kwargs])Method wrapping
.ppfof the input distribution withxarray.apply_ufuncXrRV.rvs(*args[, size, random_state, dims, ...])Method wrapping
.rvsof the input distribution withxarray.apply_ufuncXrRV.sf(*args[, apply_kwargs])Method wrapping
.sfof the input distribution withxarray.apply_ufunc