43 cerr<<
"The probability p must be greater than 0 or less than 1 in "
44 "dbinom(const prevariable& x,const double& n,const double& p)\n";
67 cerr<<
"The probability p must be greater than 0 or less than 1 in "
68 "dbinom(const prevariable& x,const prevariable& n,const double& p)\n";
90 cerr<<
"The probability p must be greater than 0 or less than 1 in "
91 "dbinom(const prevariable& x,const prevariable& n,const prevariable& p)\n";
112 if(
min(p)<=0. &&
max(p)>=1.0)
114 cerr<<
"The probability p must be greater than 0 or less than 1 in "
115 "dbinom(const dvar_vector& x,const dvar_vector& n,const dvar_vector& p)\n";
125 for(i=imin; i<=
imax;i++)
136 if(
min(p)<=0. &&
max(p)>=1.0)
138 cerr<<
"The probability p must be greater than 0 or less than 1 in "
139 "dbinom(const prevariable& x,const dvar_vector& n,const dvar_vector& p)\n";
149 for(i=imin; i<=
imax;i++)
159 if(
min(p)<=0. &&
max(p)>=1.0)
161 cerr<<
"The probability p must be greater than 0 or less than 1 in "
162 "dbinom(const dvar_vector& x,const prevariable& n,const dvar_vector& p)\n";
172 for(i=imin; i<=
imax;i++)
184 cerr<<
"The probability p must be greater than 0 or less than 1 in "
185 "dbinom(const dvar_vector& x,const dvar_vector& n,const prevariable& p)\n";
195 for(i=imin; i<=
imax;i++)
207 cerr<<
"The probability p must be greater than 0 or less than 1 in "
208 "dbinom(const df1b2variable& x,const double& n,const double& p)\n";
231 cerr<<
"The probability p must be greater than 0 or less than 1 in "
232 "dbinom(const df1b2variable& x,const df1b2variable& n,const double& p)\n";
254 cerr<<
"The probability p must be greater than 0 or less than 1 in "
255 "dbinom(const df1b2variable& x,const df1b2variable& n,const df1b2variable& p)\n";
278 cerr<<
"The probability p must be greater than 0 or less than 1 in "
279 "dbinom(const df1b2vector& x,const df1b2vector& n,const df1b2vector& p)\n";
289 for(i=imin; i<=
imax;i++)
302 cerr<<
"The probability p must be greater than 0 or less than 1 in "
303 "dbinom(const df1b2variable& x,const df1b2vector& n,const df1b2vector& p)\n";
313 for(i=imin; i<=
imax;i++)
325 cerr<<
"The probability p must be greater than 0 or less than 1 in "
326 "dbinom(const df1b2vector& x,const df1b2variable& n,const df1b2vector& p)\n";
336 for(i=imin; i<=
imax;i++)
348 cerr<<
"The probability p must be greater than 0 or less than 1 in "
349 "dbinom(const df1b2vector& x,const df1b2vector& n,const df1b2variable& p)\n";
359 for(i=imin; i<=
imax;i++)
Base class for dvariable.
double log_comb(double n, double k)
Log of the binomial coefficent; i.e log of 'n choose k'.
Description not yet available.
void RETURN_ARRAYS_DECREMENT(void)
Decrements gradient_structure::RETURN_ARRAYS_PTR.
Description not yet available.
Description not yet available.
Library of statistic functions.
Description not yet available.
void RETURN_ARRAYS_INCREMENT(void)
Increments gradient_structure::RETURN_ARRAYS_PTR.
dvector value(const df1_one_vector &v)
dvariable dbinom(const prevariable &x, const double &n, const double &p)
Fundamental data type for reverse mode automatic differentiation.
d3_array log(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.