/usr/include/openturns/swig/Triangular_doc.i is in libopenturns-dev 1.7-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | %feature("docstring") OT::Triangular
"Triangular distribution.
Available constructors:
Triangular(*a=-1.0, m=0., b=1.0*)
Parameters
----------
a : float
Lower bound.
m : float, :math:`a \\\\leq m \\\\leq b`
Mode.
b : float, :math:`a < b`
Upper bound.
Notes
-----
Its probability density function is defined as:
.. math::
f_X(x) = \\\\left\\\\{
\\\\begin{array}{ll}
\\\\displaystyle \\\\frac{2(x - a)}{(m - a)(b - a)}
& a \\\\leq x \\\\leq m \\\\\\\\
\\\\displaystyle \\\\frac{2(b - x)}{(b - m)(b - a)}
& m \\\\leq x \\\\leq b
\\\\end{array}
\\\\right., \\\\quad x \\\\in [a, b]
Its first moments are:
.. math::
:nowrap:
\\\\begin{eqnarray*}
\\\\Expect{X} & = & \\\\frac{1}{3}\\\\,(a+m+b) \\\\\\\\
\\\\Var{X} & = & \\\\frac{1}{18} (a^2+b^2+m^2-ab-am-bm)
\\\\end{eqnarray*}
Examples
--------
Create a distribution:
>>> import openturns as ot
>>> distribution = ot.Triangular(1.0, 2.5, 4.0)
Draw a sample:
>>> sample = distribution.getSample(10)"
// ---------------------------------------------------------------------
%feature("docstring") OT::Triangular::getA
"Accessor to the distribution's lower bound.
Returns
-------
a : float
Lower bound."
// ---------------------------------------------------------------------
%feature("docstring") OT::Triangular::getB
"Accessor to the distribution's upper bound.
Returns
-------
b : float
Upper bound."
// ---------------------------------------------------------------------
%feature("docstring") OT::Triangular::getM
"Accessor to the distribution's mode.
Returns
-------
m : float
Mode."
// ---------------------------------------------------------------------
%feature("docstring") OT::Triangular::setAMB
"Accessor to the distribution's parameters.
Parameters
----------
a : float
Lower bound.
m : float, :math:`a \\\\leq m \\\\leq b`
Mode.
b : float, :math:`a < b`
Upper bound."
|