pdf
statistics: y = pdf (name, x, A)
statistics: y = pdf (name, x, A, B)
statistics: y = pdf (name, x, A, B, C)
Return the PDF of a univariate distribution evaluated at x.
pdf is a wrapper for the univariate cumulative distribution functions
available in the statistics package. See the corresponding functions’ help
to learn the signification of the parameters after x.
y = pdf (name, x, A) returns the CDF for the
one-parameter distribution family specified by name and the
distribution parameter A, evaluated at the values in x.
y = pdf (name, x, A, B) returns the CDF
for the two-parameter distribution family specified by name and the
distribution parameters A and B, evaluated at the values in
x.
y = pdf (name, x, A, B, C) returns
the CDF for the three-parameter distribution family specified by name
and the distribution parameters A, B, and C, evaluated at
the values in x.
name must be a char string of the name or the abbreviation of the desired cumulative distribution function as listed in the following table. The last column shows the number of required parameters that should be parsed after x to the desired PDF.
| Distribution Name | Abbreviation | Input Parameters |
|---|---|---|
'Beta' | 'beta' | 2 |
'Binomial' | 'bino' | 2 |
'Birnbaum-Saunders' | 'bisa' | 2 |
'Burr' | 'burr' | 3 |
'Cauchy' | 'cauchy' | 2 |
'Chi-squared' | 'chi2' | 1 |
'Extreme Value' | 'ev' | 2 |
'Exponential' | 'exp' | 1 |
'F-Distribution' | 'f' | 2 |
'Gamma' | 'gam' | 2 |
'Geometric' | 'geo' | 1 |
'Generalized Extreme Value' | 'gev' | 3 |
'Generalized Pareto' | 'gp' | 3 |
'Gumbel' | 'gumbel' | 2 |
'Half-normal' | 'hn' | 2 |
'Hypergeometric' | 'hyge' | 3 |
'Inverse Gaussian' | 'invg' | 2 |
'Laplace' | 'laplace' | 2 |
'Logistic' | 'logi' | 2 |
'Log-Logistic' | 'logl' | 2 |
'Lognormal' | 'logn' | 2 |
'Nakagami' | 'naka' | 2 |
'Negative Binomial' | 'nbin' | 2 |
'Noncentral F-Distribution' | 'ncf' | 3 |
'Noncentral Student T' | 'nct' | 2 |
'Noncentral Chi-Squared' | 'ncx2' | 2 |
'Normal' | 'norm' | 2 |
'Poisson' | 'poiss' | 1 |
'Rayleigh' | 'rayl' | 1 |
'Rician' | 'rice' | 2 |
'Student T' | 't' | 1 |
'location-scale T' | 'tls' | 3 |
'Triangular' | 'tri' | 3 |
'Discrete Uniform' | 'unid' | 1 |
'Uniform' | 'unif' | 2 |
'Von Mises' | 'vm' | 2 |
'Weibull' | 'wbl' | 2 |
Source Code: pdf
Distribution names are matched ignoring case, spaces and hyphens, so that
'Extreme Value', 'ExtremeValue' and 'extreme-value'
all select the same distribution, and the same set of names is accepted by
cdf, pdf, icdf, random, makedist,
fitdist and mle.
This accepts more names than MATLAB. MATLAB takes the spaced and the
squashed spelling but refuses the hyphenated one, so
'Birnbaum-Saunders' and 'Log-Logistic' are errors there;
Octave has always accepted them and continues to. MATLAB also accepts
'tLocationScale' in makedist while refusing it in
cdf for the same distribution; Octave accepts it, and
'location-scale T', everywhere. Code written against MATLAB’s
names therefore runs unchanged, but code relying on these names will not
port back.
See also: cdf, icdf, random, betapdf, binopdf, bisapdf, burrpdf, cauchypdf, chi2pdf, evpdf, exppdf, fpdf, gampdf, geopdf, gevpdf, gppdf, gumbelpdf, hnpdf, hygepdf, invgpdf, laplacepdf, logipdf, loglpdf, lognpdf, nakapdf, nbinpdf, ncfpdf, nctpdf, ncx2pdf, normpdf, poisspdf, raylpdf, ricepdf, tpdf, tlspdf, tripdf, unidpdf, unifpdf, vmpdf, wblpdf
Source Code: pdf