STK++ 0.9.13
STK_Law_NegativeBinomial.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 * created on: 23 janv. 2013
28 * Author: iovleff, S..._Dot_I..._At_stkpp_Dot_org (see copyright for ...)
29 **/
30
36#ifndef IS_RTKPP_LIB
37#include "../include/STK_Law_NegativeBinomial.h"
38#endif
39
40namespace STK
41{
42namespace Law
43{
44
45#ifndef IS_RTKPP_LIB
46
47/* @return a Integer random variate . */
49{
50 return 0;
51}
52/* @brief compute the probability distribution function (density)
53 * Give the value of the pdf at the point x.
54 * @param x a binary value
55 * @return the value of the pdf
56 **/
58{
59 return 0;
60}
61/* @brief compute the log probability distribution function
62 * Give the value of the log-pdf at the point x.
63 * @param x a binary value
64 * @return the value of the log-pdf
65 **/
67{
68 return 0;
69}
70/* @brief compute the cumulative distribution function
71 * Give the probability that a NegativeBinomial random variate is less or equal
72 * to t.
73 * @param t a real value
74 * @return the value of the cdf
75 **/
77{
78 return 0;
79}
80/* @brief inverse cumulative distribution function
81 * The quantile is defined as the smallest value @e x such that
82 * <em> F(x) >= p </em>, where @e F is the cumulative distribution function.
83 * @param prob a probability number
84 **/
86{
87 return 0;
88}
89
90/* @param prob a probability number
91 * @return a Integer random variate.
92 **/
93Integer NegativeBinomial::rand(int size, Real const& prob)
94{
95 return 0;
96}
97/* @brief compute the probability distribution function (density)
98 * Give the value of the pdf at the point x.
99 * @param x a binary value
100 * @param prob a probability number
101 * @return the value of the pdf
102 **/
103Real NegativeBinomial::pdf(Integer x, int size, Real const& prob)
104{
105 return 0;
106}
107/* @brief compute the log probability distribution function
108 * Give the value of the log-pdf at the point x.
109 * @param x a binary value
110 * @param prob a probability number
111 * @return the value of the log-pdf
112 **/
113Real NegativeBinomial::lpdf(Integer x, int size, Real const& prob)
114{
115 return 0;
116}
117/* @brief compute the cumulative distribution function
118 * Give the probability that a NegativeBinomial random variate is less or equal
119 * to t.
120 * @param t a real value
121 * @return the value of the cdf
122 **/
123Real NegativeBinomial::cdf(Real const& t, int size, Real const& prob)
124{
125 return 0;
126}
127/* @brief inverse cumulative distribution function
128 * The quantile is defined as the smallest value @e x such that
129 * <em> F(x) >= p </em>, where @e F is the cumulative distribution function.
130 * @param prob a probability number
131 **/
132Integer NegativeBinomial::icdf(Real const& p, int size, Real const& prob)
133{
134 return 0;
135}
136
137#endif
138
139} // namespace Law
140
141} // namespace STK
142
143
virtual Real cdf(Real const &t) const
compute the cumulative distribution function Give the probability that a NegativeBinomial random vari...
virtual Real lpdf(Integer const &x) const
compute the log probability distribution function Give the value of the log-pdf at the point x.
virtual Real pdf(Integer const &x) const
compute the probability distribution function (density) Give the value of the pdf at the point x.
virtual Integer icdf(Real const &p) const
inverse cumulative distribution function The quantile is defined as the smallest value x such that F...
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.