FUNCTION REFERENCE
makedist
Create a probability distribution value object.
Create a probability distribution value object.
Syntax
pd = makedist(name)Syntax
pd = makedist(name, parameter, value, ...)Creates a scalar object for Normal, Uniform, Exponential, Gamma, Beta, Chisquare, T, F, Lognormal, Weibull, Rayleigh, ExtremeValue, Binomial, Poisson, Geometric, NegativeBinomial, Logistic, Loglogistic, Rician, Nakagami, GeneralizedExtremeValue, GeneralizedPareto, tLocationScale, InverseGaussian, BirnbaumSaunders or HalfNormal. Family and parameter names are case-insensitive. Parameters use MATLAB names: mu/sigma, Lower/Upper, a/b, nu, nu1/nu2, A/B, B, N/p, lambda, p, R/P, s/sigma (Rician), mu/omega (Nakagami), k/sigma/mu (GEV), k/sigma/theta (GP), mu/sigma/nu (tLocationScale), mu/lambda (InverseGaussian), beta/gamma (BirnbaumSaunders) as appropriate. Defaults are zero location, unit scale/shape, Uniform [0,1], Binomial N=1/p=0.5, Geometric p=0.5, NegativeBinomial R=1/P=0.5, GEV k=0, GeneralizedPareto k=sigma=theta=1 and tLocationScale nu=5.
Read parameters with pd.mu, pd.ParameterNames or pd.ParameterValues; pd.DistributionName gives the family and class(pd) the prob.*Distribution name. Use pdf, cdf, icdf, random, mean, std, var, median, paramci and negloglik on objects. Assignment shares the immutable value.
Example
pd = makedist('Normal','mu',2,'sigma',3); [pdf(pd,2), mean(pd), std(pd)]Example
pd = makedist("Gamma","a",2,"b",3); pd.ParameterValuesExample
pd = makedist('GeneralizedExtremeValue','k',0.2,'sigma',2,'mu',1); [cdf(pd,3), icdf(pd,0.9)]Differences from MATLAB: properties are read-only; create a changed object with makedist. Only scalar objects and the listed families are supported; Chisquare, T and F objects extend the named-kernel interface. Parameters must be finite and in the family kernel's domain (Nakagami accepts any mu > 0). No no-argument listing, custom distributions, truncation or object persistence.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.