- XrDiscreteRV.rvs(*args, size=1, random_state=None, dims=None, apply_kwargs=None, **kwargs)#
Usage examples available at Probability distributions.
- argsscalar or array_like, optional
Passed to the scipy distribution after broadcasting.
intof sequence of
The number of samples to draw per array element. If the distribution parameters broadcast to a
(4, 10, 6)shape and
size=(5, 3)then the output shape is
(5, 3, 4, 10, 6). This differs from the scipy implementation. Here, all broadcasting and alignment is done for you, you give the dimensions the right names, and broadcasting just happens. If
sizefollowed scipy behaviour, you’d be forced to broadcast to provide a valid value which would defeat the
xarray_einstatsgoal of handling all alignment and broadcasting for you.
Passed as is to the wrapped scipy distribution
stror sequence of
Dimension names for the dimensions created due to
size. If present it must have the same length as
Passed to the scipy distribution after broadcasting using the same key.