naginterfaces.library.stat.pdf_​normal_​vector

naginterfaces.library.stat.pdf_normal_vector(ilog, x, xmu, xstd)[source]

pdf_normal_vector returns a number of values of the probability density function (PDF), or its logarithm, for the Normal (Gaussian) distributions.

For full information please refer to the NAG Library document for g01kq

https://www.nag.com/numeric/nl/nagdoc_28.4/flhtml/g01/g01kqf.html

Parameters
ilogint

The value of determines whether the logarithmic value is returned in PDF.

, the probability density function is returned.

, the logarithm of the probability density function is returned.

xfloat, array-like, shape

, the values at which the PDF is to be evaluated.

xmufloat, array-like, shape

, the means.

xstdfloat, array-like, shape

, the standard deviations.

Returns
pdffloat, ndarray, shape

or .

ivalidint, ndarray, shape

indicates any errors with the input arguments, with

No error.

.

Raises
NagValueError
(errno )

On entry, .

Constraint: or .

(errno )

On entry, .

Constraint: .

(errno )

On entry, .

Constraint: .

(errno )

On entry, .

Constraint: .

Warns
NagAlgorithmicWarning
(errno )

On entry, at least one value of was invalid.

Check for more information.

Notes

The Normal distribution with mean , variance ; has probability density function (PDF)

The input arrays to this function are designed to allow maximum flexibility in the supply of vector arguments by re-using elements of any arrays that are shorter than the total number of evaluations required. See the G01 Introduction for further information.