/usr/include/openturns/swig/Weibull_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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | %feature("docstring") OT::Weibull
"Weibull distribution.
Available constructors:
Weibull(*arg1=1.0, arg2=1.0, gamma=0., ot.Weibull.ALPHABETA*)
Parameters
----------
arg1 : float
If `parameters_set == ot.Weibull.ALPHABETA`: scale parameter :math:`\\\\alpha > 0`.
If `parameters_set == ot.Weibull.MUSIGMA`: mean.
arg2 : float
If `parameters_set == ot.Weibull.ALPHABETA`: shape parameter :math:`\\\\beta > 0`.
If `parameters_set == ot.Weibull.MUSIGMA`: standard deviation :math:`\\\\sigma > 0`.
gamma : float, optional
Location parameter :math:`\\\\gamma < \\\\mu`.
parameters_set : int, optional
Integer telling which parameters set is used for defining the
distribution (amongst `ot.Weibull.ALPHABETA, ot.Weibull.MUSIGMA`).
Notes
-----
Its probability density function is defined as:
.. math::
f_X(x) = \\\\frac{\\\\beta}{\\\\alpha}
\\\\left(\\\\frac{x - \\\\gamma}{\\\\alpha} \\\\right) ^ {\\\\beta-1}
exp \\\\left(-\\\\left(\\\\frac{x - \\\\gamma}{\\\\alpha}\\\\right)^{\\\\beta}\\\\right),
\\\\quad x \\\\in [\\\\gamma; +\\\\infty[
Its first moments are:
.. math::
:nowrap:
\\\\begin{eqnarray*}
\\\\Expect{X} & = & \\\\alpha \\\\,\\\\Gamma\\\\left(1 + \\\\frac{1}{\\\\beta}\\\\right)
+ \\\\gamma \\\\\\\\
\\\\Var{X} & = & \\\\alpha^2 \\\\Gamma\\\\left(1 + \\\\frac{2}{\\\\beta}\\\\right) -
\\\\Gamma^2 \\\\left(1 + \\\\frac{1}{\\\\beta}\\\\right)
\\\\end{eqnarray*}
where :math:`\\\\Gamma` denotes Euler's Gamma function
:class:`~openturns.SpecFunc_Gamma`.
Examples
--------
Create a distribution:
>>> import openturns as ot
>>> distribution = ot.Weibull(2.0, 1.5, -0.5, 1)
Draw a sample:
>>> sample = distribution.getSample(10)"
// ---------------------------------------------------------------------
%feature("docstring") OT::Weibull::getAlpha
"Accessor to the distribution's scale parameter :math:`\\\\alpha`.
Returns
-------
alpha : float
Scale parameter :math:`\\\\alpha`."
// ---------------------------------------------------------------------
%feature("docstring") OT::Weibull::getBeta
"Accessor to the distribution's shape parameter :math:`\\\\beta`.
Returns
-------
beta : float
Shape parameter :math:`\\\\beta`."
// ---------------------------------------------------------------------
%feature("docstring") OT::Weibull::getGamma
"Accessor to the distribution's shift parameter :math:`\\\\gamma`.
Returns
-------
gamma : float
Location parameter :math:`\\\\gamma`."
// ---------------------------------------------------------------------
%feature("docstring") OT::Weibull::getMu
"Accessor to the distribution's mean.
Returns
-------
mu : float
Mean."
// ---------------------------------------------------------------------
%feature("docstring") OT::Weibull::getSigma
"Accessor to the distribution's standard deviation.
Returns
-------
sigma : float, :math:`\\\\sigma > 0`
Standard deviation."
// ---------------------------------------------------------------------
%feature("docstring") OT::Weibull::setAlpha
"Accessor to the distribution's scale parameter :math:`\\\\alpha`.
Parameters
----------
alpha : float, :math:`\\\\alpha > 0`
Scale parameter :math:`\\\\alpha`."
// ---------------------------------------------------------------------
%feature("docstring") OT::Weibull::setBeta
"Accessor to the distribution's shape parameter :math:`\\\\beta`.
Parameters
----------
beta : float, :math:`\\\\beta > 0`
Shape parameter :math:`\\\\beta`."
// ---------------------------------------------------------------------
%feature("docstring") OT::Weibull::setAlphaBeta
"Accessor to the distribution's scale parameter :math:`\\\\alpha` and
shape parameter :math:`\\\\beta`.
Parameters
----------
alpha : float, :math:`\\\\alpha > 0`
Scale parameter :math:`\\\\alpha`.
beta : float, :math:`\\\\beta > 0`
Shape parameter :math:`\\\\beta`."
// ---------------------------------------------------------------------
%feature("docstring") OT::Weibull::setGamma
"Accessor to the distribution's location parameter :math:`\\\\gamma`.
Parameters
----------
gamma : float
Location parameter :math:`\\\\gamma`."
// ---------------------------------------------------------------------
%feature("docstring") OT::Weibull::setMuSigma
"Accessor to the distribution's mean and standard deviation.
Parameters
----------
mu : float
Mean.
sigma : float, :math:`\\\\sigma > 0`
Standard deviation."
|