class documentation

class TestRandomDist:

View In Hierarchy

Undocumented

Method setup Undocumented
Method test​_beta Undocumented
Method test​_binomial Undocumented
Method test​_bytes Undocumented
Method test​_chisquare Undocumented
Method test​_choice​_exceptions Undocumented
Method test​_choice​_large​_sample Undocumented
Method test​_choice​_multidimensional​_custom​_axis Undocumented
Method test​_choice​_multidimensional​_default​_axis Undocumented
Method test​_choice​_nan​_probabilities Undocumented
Method test​_choice​_noninteger Undocumented
Method test​_choice​_nonuniform​_noreplace Undocumented
Method test​_choice​_nonuniform​_replace Undocumented
Method test​_choice​_p​_non​_contiguous Undocumented
Method test​_choice​_return​_shape Undocumented
Method test​_choice​_return​_type Undocumented
Method test​_choice​_uniform​_noreplace Undocumented
Method test​_choice​_uniform​_replace Undocumented
Method test​_dirichlet Undocumented
Method test​_dirichlet​_alpha​_non​_contiguous Undocumented
Method test​_dirichlet​_bad​_alpha Undocumented
Method test​_dirichlet​_moderately​_small​_alpha Undocumented
Method test​_dirichlet​_size Undocumented
Method test​_dirichlet​_small​_alpha Undocumented
Method test​_exponential Undocumented
Method test​_exponential​_0 Undocumented
Method test​_f Undocumented
Method test​_gamma Undocumented
Method test​_gamma​_0 Undocumented
Method test​_geometric Undocumented
Method test​_geometric​_exceptions Undocumented
Method test​_gumbel Undocumented
Method test​_gumbel​_0 Undocumented
Method test​_hypergeometric Undocumented
Method test​_integers Undocumented
Method test​_integers​_closed Undocumented
Method test​_integers​_masked Undocumented
Method test​_integers​_max​_int Undocumented
Method test​_laplace Undocumented
Method test​_laplace​_0 Undocumented
Method test​_logistic Undocumented
Method test​_lognormal Undocumented
Method test​_lognormal​_0 Undocumented
Method test​_logseries Undocumented
Method test​_logseries​_exceptions Undocumented
Method test​_multinomial Undocumented
Method test​_multivariate​_normal Undocumented
Method test​_multivariate​_normal​_basic​_stats Undocumented
Method test​_negative​_binomial Undocumented
Method test​_negative​_binomial​_exceptions Undocumented
Method test​_negative​_binomial​_p0​_exception Undocumented
Method test​_noncentral​_chisquare Undocumented
Method test​_noncentral​_f Undocumented
Method test​_noncentral​_f​_nan Undocumented
Method test​_normal Undocumented
Method test​_normal​_0 Undocumented
Method test​_out​_size​_mismatch Undocumented
Method test​_pareto Undocumented
Method test​_permutation Undocumented
Method test​_permutation​_custom​_axis Undocumented
Method test​_permutation​_exceptions Undocumented
Method test​_permuted Undocumented
Method test​_permuted​_empty Undocumented
Method test​_permuted​_out​_with​_wrong​_shape Undocumented
Method test​_permuted​_out​_with​_wrong​_type Undocumented
Method test​_permuted​_with​_strides Undocumented
Method test​_poisson Undocumented
Method test​_poisson​_exceptions Undocumented
Method test​_power Undocumented
Method test​_random Undocumented
Method test​_random​_distribution​_of​_lsb Undocumented
Method test​_random​_float Undocumented
Method test​_random​_float​_scalar Undocumented
Method test​_random​_unsupported​_type Undocumented
Method test​_rayleigh Undocumented
Method test​_rayleigh​_0 Undocumented
Method test​_scalar​_exception​_propagation Undocumented
Method test​_shuffle Undocumented
Method test​_shuffle​_axis​_nonsquare Undocumented
Method test​_shuffle​_custom​_axis Undocumented
Method test​_shuffle​_custom​_axis​_empty Undocumented
Method test​_shuffle​_exceptions Undocumented
Method test​_shuffle​_masked Undocumented
Method test​_standard​_cauchy Undocumented
Method test​_standard​_expoential​_type​_error Undocumented
Method test​_standard​_exponential Undocumented
Method test​_standard​_gamma Undocumented
Method test​_standard​_gamma​_0 Undocumented
Method test​_standard​_gamma​_float Undocumented
Method test​_standard​_gamma​_unknown​_type Undocumented
Method test​_standard​_gammma​_float​_out Undocumented
Method test​_standard​_gammma​_scalar​_float Undocumented
Method test​_standard​_normal Undocumented
Method test​_standard​_normal​_unsupported​_type Undocumented
Method test​_standard​_t Undocumented
Method test​_triangular Undocumented
Method test​_uniform Undocumented
Method test​_uniform​_neg​_range Undocumented
Method test​_uniform​_range​_bounds Undocumented
Method test​_uniform​_zero​_range Undocumented
Method test​_vonmises Undocumented
Method test​_vonmises​_large​_kappa Undocumented
Method test​_vonmises​_large​_kappa​_range Undocumented
Method test​_vonmises​_nan Undocumented
Method test​_vonmises​_small Undocumented
Method test​_wald Undocumented
Method test​_weibull Undocumented
Method test​_weibull​_0 Undocumented
Method test​_zipf Undocumented
Instance Variable seed Undocumented
def setup(self):

Undocumented

def test_beta(self):

Undocumented

def test_binomial(self):

Undocumented

def test_bytes(self):

Undocumented

def test_chisquare(self):

Undocumented

def test_choice_exceptions(self):

Undocumented

def test_choice_large_sample(self):

Undocumented

def test_choice_multidimensional_custom_axis(self):

Undocumented

def test_choice_multidimensional_default_axis(self):

Undocumented

def test_choice_nan_probabilities(self):

Undocumented

def test_choice_noninteger(self):

Undocumented

def test_choice_nonuniform_noreplace(self):

Undocumented

def test_choice_nonuniform_replace(self):

Undocumented

def test_choice_p_non_contiguous(self):

Undocumented

def test_choice_return_shape(self):

Undocumented

def test_choice_return_type(self):

Undocumented

def test_choice_uniform_noreplace(self):

Undocumented

def test_choice_uniform_replace(self):

Undocumented

def test_dirichlet(self):

Undocumented

def test_dirichlet_alpha_non_contiguous(self):

Undocumented

def test_dirichlet_bad_alpha(self):

Undocumented

@pytest.mark.slow
def test_dirichlet_moderately_small_alpha(self):

Undocumented

def test_dirichlet_size(self):

Undocumented

def test_dirichlet_small_alpha(self):

Undocumented

def test_exponential(self):

Undocumented

def test_exponential_0(self):

Undocumented

def test_f(self):

Undocumented

def test_gamma(self):

Undocumented

def test_gamma_0(self):

Undocumented

def test_geometric(self):

Undocumented

def test_geometric_exceptions(self):

Undocumented

def test_gumbel(self):

Undocumented

def test_gumbel_0(self):

Undocumented

def test_hypergeometric(self):

Undocumented

def test_integers(self):

Undocumented

def test_integers_closed(self):

Undocumented

def test_integers_masked(self):

Undocumented

def test_integers_max_int(self):

Undocumented

def test_laplace(self):

Undocumented

def test_laplace_0(self):

Undocumented

def test_logistic(self):

Undocumented

def test_lognormal(self):

Undocumented

def test_lognormal_0(self):

Undocumented

def test_logseries(self):

Undocumented

def test_logseries_exceptions(self):

Undocumented

def test_multinomial(self):

Undocumented

@pytest.mark.parametrize('method', ['svd', 'eigh', 'cholesky'])
def test_multivariate_normal(self, method):

Undocumented

@pytest.mark.parametrize('method', ['svd', 'eigh', 'cholesky'])
def test_multivariate_normal_basic_stats(self, method):

Undocumented

def test_negative_binomial(self):

Undocumented

def test_negative_binomial_exceptions(self):

Undocumented

def test_negative_binomial_p0_exception(self):

Undocumented

def test_noncentral_chisquare(self):

Undocumented

def test_noncentral_f(self):

Undocumented

def test_noncentral_f_nan(self):

Undocumented

def test_normal(self):

Undocumented

def test_normal_0(self):

Undocumented

def test_out_size_mismatch(self):

Undocumented

def test_pareto(self):

Undocumented

def test_permutation(self):

Undocumented

def test_permutation_custom_axis(self):

Undocumented

def test_permutation_exceptions(self):

Undocumented

@pytest.mark.parametrize('dtype', [int, object])
@pytest.mark.parametrize('axis, expected', [(None, np.array([[3, 7, 0, 9, 10, 11], [8, 4, 2, 5, 1, 6]])), (0, np.array([[6, 1, 2, 9, 10, 11], [0, 7, 8, 3, 4, 5]])), (1, np.array([[5, 3, 4, 0, 2, 1], [11, 9, 10, 6, 8, 7]]))])
def test_permuted(self, dtype, axis, expected):

Undocumented

def test_permuted_empty(self):

Undocumented

@pytest.mark.parametrize('outshape', [(2, 3), 5])
def test_permuted_out_with_wrong_shape(self, outshape):

Undocumented

def test_permuted_out_with_wrong_type(self):

Undocumented

def test_permuted_with_strides(self):

Undocumented

def test_poisson(self):

Undocumented

def test_poisson_exceptions(self):

Undocumented

def test_power(self):

Undocumented

def test_random(self):

Undocumented

@pytest.mark.parametrize('dtype, uint_view_type', [(np.float32, np.uint32), (np.float64, np.uint64)])
def test_random_distribution_of_lsb(self, dtype, uint_view_type):

Undocumented

def test_random_float(self):

Undocumented

def test_random_float_scalar(self):

Undocumented

def test_random_unsupported_type(self):

Undocumented

def test_rayleigh(self):

Undocumented

def test_rayleigh_0(self):

Undocumented

def test_scalar_exception_propagation(self):

Undocumented

def test_shuffle(self):

Undocumented

def test_shuffle_axis_nonsquare(self):

Undocumented

def test_shuffle_custom_axis(self):

Undocumented

def test_shuffle_custom_axis_empty(self):

Undocumented

def test_shuffle_exceptions(self):

Undocumented

def test_shuffle_masked(self):

Undocumented

def test_standard_cauchy(self):

Undocumented

def test_standard_expoential_type_error(self):

Undocumented

def test_standard_exponential(self):

Undocumented

def test_standard_gamma(self):

Undocumented

def test_standard_gamma_0(self):

Undocumented

def test_standard_gamma_float(self):

Undocumented

def test_standard_gamma_unknown_type(self):

Undocumented

def test_standard_gammma_float_out(self):

Undocumented

def test_standard_gammma_scalar_float(self):

Undocumented

def test_standard_normal(self):

Undocumented

def test_standard_normal_unsupported_type(self):

Undocumented

def test_standard_t(self):

Undocumented

def test_triangular(self):

Undocumented

def test_uniform(self):

Undocumented

def test_uniform_neg_range(self):

Undocumented

def test_uniform_range_bounds(self):

Undocumented

def test_uniform_zero_range(self):

Undocumented

def test_vonmises(self):

Undocumented

@pytest.mark.parametrize('kappa', [10000.0, 1000000000000000.0])
def test_vonmises_large_kappa(self, kappa):

Undocumented

@pytest.mark.parametrize('mu', [-7.0, -np.pi, -3.1, np.pi, 3.2])
@pytest.mark.parametrize('kappa', [1e-09, 1e-06, 1, 1000.0, 1000000000000000.0])
def test_vonmises_large_kappa_range(self, mu, kappa):

Undocumented

def test_vonmises_nan(self):

Undocumented

def test_vonmises_small(self):

Undocumented

def test_wald(self):

Undocumented

def test_weibull(self):

Undocumented

def test_weibull_0(self):

Undocumented

def test_zipf(self):

Undocumented

seed: int =

Undocumented