STK++ 0.9.13
STK_Law_Weibull.cpp
Go to the documentation of this file.
1/*--------------------------------------------------------------------*/
2/* Copyright (C) 2004-2016 Serge Iovleff, Université Lille 1, Inria
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this program; if not, write to the
16 Free Software Foundation, Inc.,
17 59 Temple Place,
18 Suite 330,
19 Boston, MA 02111-1307
20 USA
21
22 Contact : S..._Dot_I..._At_stkpp_Dot_org (see copyright for ...)
23*/
24
25/*
26 * Project: stkpp::STatistiK::Law
27 * Purpose: Weibull probability distribution.
28 * Author: Serge Iovleff, S..._Dot_I..._At_stkpp_Dot_org (see copyright for ...)
29 **/
30
35#ifndef IS_RTKPP_LIB
36#include "../include/STK_Law_Weibull.h"
37#endif
38
39namespace STK
40{
41
42namespace Law
43{
44
45#ifndef IS_RTKPP_LIB
46
47/* @return a pseudo Weibull random variate. */
49{
50 return 0;
51}
52/* @return the value of the pdf
53 * @param x a positive real value
54 **/
55Real Weibull::pdf(Real const& x) const
56{
57 return 0;
58}
59/* @return the value of the log-pdf
60 * @param x a positive real value
61 **/
62Real Weibull::lpdf(Real const& x) const
63{
64 return 0;
65}
66/*The cumulative distribution function for the Weibull distribution is
67 * \f$ F(x;k,\lambda) = 1- e^{-(x/\lambda)^k}.\f$
68 * @return the cumulative distribution function
69 * @param t a positive real value
70 **/
71Real Weibull::cdf(Real const& t) const
72{
73 return 0;
74}
75/*The quantile (inverse cumulative distribution) function for the Weibull
76 * distribution is \f$ Q(p;k,\lambda) = \lambda {(-\ln(1-p))}^{1/k} \f$
77 * @return the inverse cumulative distribution function
78 * @param p a probability number
79 **/
80Real Weibull::icdf(Real const& p) const
81{
82 return 0;
83}
84
85/* @return a pseudo Weibull random variate with the specified parameters.
86 * @param k, lambda shape and scale (dispersion) parameters
87 **/
88Real Weibull::rand( Real const& k, Real const& lambda)
89{
90 return 0;
91}
92/* @return the value of the pdf
93 * @param x a positive real value
94 * @param k, lambda shape and scale (dispersion) parameters
95 **/
96Real Weibull::pdf(Real const& x, Real const& k, Real const& lambda)
97{
98 return 0;
99}
100/* @return the value of the log-pdf
101 * @param x a positive real value
102 * @param k, lambda shape and scale (dispersion) parameters
103 **/
104Real Weibull::lpdf(Real const& x, Real const& k, Real const& lambda)
105{
106 return 0;
107}
108/* @return the cumulative distribution function
109 * @param t a positive real value
110 * @param k, lambda shape and scale (dispersion) parameters
111 **/
112Real Weibull::cdf(Real const& t, Real const& k, Real const& lambda)
113{
114 return 0;
115}
116/* @brief Compute the inverse cumulative distribution function at p
117 * of the standard log-normal distribution.
118 *
119 * @param p a probability number.
120 * @param mu, sigma location and scale of the log-normal law
121 * @return the inverse cumulative distribution function value at p.
122 **/
123Real Weibull::icdf( Real const& p, Real const& k, Real const& lambda)
124{
125 return 0;
126}
127
128#endif
129
130} // namespace Law
131
132} // namespace STK
virtual Real pdf(Real const &x) const
virtual Real lpdf(Real const &x) const
virtual Real rand() const
virtual Real icdf(Real const &p) const
The quantile (inverse cumulative distribution) function for the Weibull distribution is .
virtual Real cdf(Real const &t) const
The cumulative distribution function for the Weibull distribution is .
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
double Real
STK fundamental type of Real values.
The namespace STK is the main domain space of the Statistical ToolKit project.