boundary - Piecewise distribution boundaries

Class

@piecewisedistribution

Syntax

[p,q] = boundary(obj)
[p,q] = boundary(obj,i)

Description

[p,q] = boundary(obj) returns the boundary points between segments of the piecewise distribution object obj. p is a vector of cumulative probabilities at each boundary. q is a vector of quantiles at each boundary.

[p,q] = boundary(obj,i) returns p and q for the ith boundary.

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

See Also

paretotails, cdf, icdf, nsegments

  


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