aub_htp.multivariate_alpha_stable_gen#
- class aub_htp.multivariate_alpha_stable_gen(seed=None)#
Bases:
multi_rv_genericMultivariate alpha stable distribution generator.
- __init__(seed=None)#
Methods
__init__([seed])rvs(alpha[, spectral_measure_sampler, ...])Sample from a multivariate alpha stable distribution.
Attributes
random_stateGet or set the Generator object for generating random variates.
- rvs(alpha: float, spectral_measure_sampler: BaseSpectralMeasureSampler | Literal['standard_isotropic_2d', 'standard_isotropic_3d', '1x2_elliptic_2d', '1x2x4_elliptic_3d', 'coin_flip_discrete'] = 'standard_isotropic_2d', shift: ndarray = 0, size: int | None = None, random_state: None | int | RandomState | Generator = None)#
Sample from a multivariate alpha stable distribution.
Parameters#
- alphafloat
The alpha parameter of the alpha stable distribution.
- spectral_measure_samplerBaseSpectralMeasureSampler or str
The spectral measure sampler to use.
- shiftnp.ndarray
The shift vector to apply to the samples.
- sizeint or tuple of ints, optional
Defines the shape of the returned array. Default is 1.
- random_stateint or None, optional
Random state to use for the random number generator.
Returns#
- samplesndarray
Samples from the multivariate alpha stable distribution.
Raises#
- ValueError
If the spectral measure sampler is not supported.