Products & Services Solutions Academia Support User Community Company

Learn more about Statistics Toolbox   

pdf - Class: piecewisedistribution

Probability density function for piecewise distribution

Syntax

P = pdf(obj,X)

Description

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

Examples

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

pdf(obj,q)
ans =
    0.2367
    0.1960

See Also

paretotails, cdf

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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