{ } Raw JSON

bundles / scipy 1.17.1 / scipy / stats / _multivariate / multivariate_hypergeom_gen / logpmf

function

scipy.stats._multivariate:multivariate_hypergeom_gen.logpmf

source: /scipy/stats/_multivariate.py :5854

Signature

def   logpmf ( self x m n )

Summary

Log of the multivariate hypergeometric probability mass function.

Parameters

x : array_like

Quantiles, with the last axis of x denoting the components.

m : array_like

The number of each type of object in the population. That is, is the number of objects of type .

n : array_like

The number of samples taken from the population.

Returns

logpmf : ndarray or scalar

Log of the probability mass function evaluated at x

Notes

m must be an array of positive integers. If the quantile contains values out of the range where is the number of objects of type in the population or if the parameters are inconsistent with one another (e.g. x.sum() != n), methods return the appropriate value (e.g. 0 for pmf). If m or n contain negative values, the result will contain nan there.

Aliases

  • scipy.stats._multivariate.multivariate_hypergeom_gen.logpmf