Skip to Main Content Skip to Search
Product Documentation

nsegments - Class: piecewisedistribution

Number of segments

Syntax

n = nsegments(obj)

Description

n = nsegments(obj) returns the number of segments n in the piecewise distribution object obj.

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);

n = nsegments(obj)
n =
     3

See Also

boundary | paretotails | segment

  


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