Piecewise distribution boundaries
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.
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