{ } Raw JSON

bundles / scipy 1.17.1 / scipy / stats / _distribution_infrastructure / _Interval / draw

function

scipy.stats._distribution_infrastructure:_Interval.draw

source: /scipy/stats/_distribution_infrastructure.py :391

Signature

def   draw ( self n type_ min max squeezed_base_shape rng = None )

Summary

Draw random values from the domain.

Parameters

n : int

The number of values to be drawn from the domain.

type_ : str

A string indicating whether the values are

  • strictly within the domain ('in'),

  • at one of the two endpoints ('on'),

  • strictly outside the domain ('out'), or

  • NaN ('nan').

min, max : ndarray

The endpoints of the domain.

squeezed_based_shape : tuple of ints

See _RealParameter.draw.

rng : np.Generator

The Generator used for drawing random values.

Aliases

  • scipy.stats._distribution_infrastructure._Interval.draw