Products & Services Solutions Academia Support User Community Company

Learn more about Statistics Toolbox   

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

paretotails, boundary, segment

  


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