This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / stats / _continuous_distns / triang_gen

class

scipy.stats._continuous_distns:triang_gen

source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_continuous_distns.py:10099

Signature

class triang_gen(momtype = 1, a = None, b = None, xtol = 1e-14, badvalue = None, name = None, longname = None, shapes = None, seed = None)

Members

Summary

A triangular continuous random variable.

Extended Summary

%(before_notes)s

Notes

The triangular distribution can be represented with an up-sloping line from loc to (loc + c*scale) and then downsloping for (loc + c*scale) to (loc + scale).

triang takes c as a shape parameter for .

%(after_notes)s

The standard form is in the range [0, 1] with c the mode. The location parameter shifts the start to loc. The scale parameter changes the width from 1 to scale.

%(example)s

Aliases

  • scipy.stats._continuous_distns.triang_gen