1%feature("docstring") OT::TriangularFactory
2"Triangular factory.
3
4Available constructor:
5    TriangularFactory()
6
7The parameters are estimated by method of moments:
8
9.. math::
10    :nowrap:
11
12    \begin{eqnarray*}
13      \displaystyle\Hat{a}_n=(1-\mathrm{sign}(x_{(1,n)})/(2+n))x_{(1,n)}\\
14      \displaystyle\Hat{b}_n=(1+\mathrm{sign}(x_{(n,n)})/(2+n))x_{(n,n)}\\
15      \displaystyle\Hat{m}_n=3\bar{x}_n-\Hat{a}_n-\Hat{b}_n
16    \end{eqnarray*}
17
18See also
19--------
20DistributionFactory, Triangular"
21
22// ---------------------------------------------------------------------
23
24%define OT_DistributionFactory_buildAsTriangular_doc
25"Build the Triangular distribution.
26
27**Available usages**:
28
29    buildAsTriangular(*sample*)
30
31    buildAsTriangular(*param*)
32
33Parameters
34----------
35sample : 2-d sequence of float
36    Sample from which the distribution parameters are estimated.
37param : Collection of :class:`~openturns.PointWithDescription`
38    A vector of parameters of the distribution.
39
40Returns
41-------
42dist : :class:`~openturns.Triangular`
43    The built distribution."
44%enddef
45%feature("docstring") OT::TriangularFactory::buildAsTriangular
46OT_DistributionFactory_buildAsTriangular_doc
47
48