cdf
Compute cumulative distribution function values.
Syntax
p=cdf(dist,x,a)
p=cdf(dist,x,a,b)
Inputs
- dist
- The distribution name.
- x
- Values of the distribution random variable.
- a,b
- Distribution parameters.
Outputs
- p
- Cumulative probability values.
Example
Vector example with normal distribution.
x = [1,2,3,4,5,6,7];
a = 5;
b = 3;
p = cdf('norm',x,a,b)
p = [Matrix] 1 x 7
0.091211 0.15866 0.25249 0.36944 0.5 0.63056 0.74751
Comments
The supported strings for the distribution type are as follows. 'beta' 'chi2' 'chisquare' 'exp' 'exponential' 'f' 'gam' 'gamma' 'logn' 'lognormal' 'norm' 'normal' 'poiss' 'poisson' 't' 'unif' 'uniform' 'wbl' 'weibull'.