Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Classe « NumericalInverseHermite »

Méthode scipy.stats.NumericalInverseHermite.rvs

Signature de la méthode rvs

def rvs(self, size=None, random_state=None) 

Description

rvs.__doc__

        Random variates of the given RV.

        The `random_state` is used to draw uniform pseudo-random variates, and
        these are converted to pseudo-random variates of the given RV using
        inverse transform sampling.

        Parameters
        ----------
        size : int, tuple of ints, or None; optional
            Defines shape of array of random variates. Default is ``None``.
        random_state : {None, int, `numpy.random.Generator`,
                        `numpy.random.RandomState`}, optional

            Defines the object to use for drawing pseudorandom variates.
            If `random_state` is ``None`` the `np.random.RandomState`
            singleton is used.
            If `random_state` is an ``int``, a new ``RandomState`` instance is
            used, seeded with `random_state`.
            If `random_state` is already a ``RandomState`` or ``Generator``
            instance, then that object is used.
            Default is None.

        Returns
        -------
        rvs : ndarray or scalar
            Random variates of given `size`. If `size` is ``None``, a scalar
            is returned.