cdf - Cumulative distribution function for piecewise distribution

Class

@piecewisedistribution

Syntax

P = cdf(obj,X)

Description

P = cdf(obj,X) returns an array P of values of the cumulative distribution function for the piecewise distribution object obj, evaluated at the values in the array X.

Example

Fit Pareto tails to a t distribution at cumulative probabilities 0.1 and 0.9:

t = trnd(3,100,1);
obj = paretotails(t,0.1,0.9);
[p,q] = boundary(obj)
p =
    0.1000
    0.9000
q =
   -1.7766
    1.8432

cdf(obj,q)
ans =
    0.1000
    0.9000

See Also

paretotails, pdf, icdf

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS