jax.random.weibull_min#
- jax.random.weibull_min(key, scale, concentration, shape=(), dtype=<class 'float'>)[source]#
Sample from a Weibull distribution.
The values are distributed according to the probability density function:
\[f(x;\sigma,c) \propto x^{c - 1} \exp(-(x / \sigma)^c)\]on the domain \(0 < x < \infty\), where \(c > 0\) is the concentration parameter, and \(\sigma > 0\) is the scale parameter.
- Parameters:
key (
Union[Array,ndarray,bool_,number,bool,int,float,complex]) – a PRNG key.scale (
Union[Array,ndarray,bool_,number,bool,int,float,complex]) – The scale parameter of the distribution.concentration (
Union[Array,ndarray,bool_,number,bool,int,float,complex]) – The concentration parameter of the distribution.shape (
Sequence[int]) – The shape added to the parameters loc and scale broadcastable shape.dtype (
Union[str,type[Any],dtype,SupportsDType]) – The type used for samples.
- Return type:
- Returns:
A jnp.array of samples.