Quantcast

Documentation Center

  • Trial Software
  • Product Updates

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

| |

Was this topic helpful?