Revision 594 trunk/contrib/ecolib/logistic.cpp
logistic.cpp (revision 594)  

9  9 
\param a ; differentiable scalar 
10  10 
\param b ; differentiable scalar 
11  11 
\return \f$ \frac{e^{a+bx}}{(1+e^{a+bx})} \f$ 
12 
\ingroup ECOL 

12  13 
**/ 
13  14 
dvariable logistic(const double& x, const prevariable& a, const prevariable& b) 
14  15 
{ 
...  ...  
24  25 
\param a ; differentiable scalar 
25  26 
\param b ; differentiable scalar 
26  27 
\return \f$ \frac{e^{a+bx}}{(1+e^{a+bx})} \f$ 
28 
\ingroup ECOL 

27  29 
**/ 
28  30 
dvar_vector logistic(const dvector& x, const prevariable& a, const prevariable& b) 
29  31 
{ 
...  ...  
39  41 
\param a ; differentiable vector 
40  42 
\param b ; differentiable scalar 
41  43 
\return \f$ \frac{e^{a+bx}}{(1+e^{a+bx})} \f$ 
44 
\ingroup ECOL 

42  45 
**/ 
43  46 
dvar_vector logistic(const dvector& x, const dvar_vector& a, const prevariable& b) 
44  47 
{ 
...  ...  
55  58 
\param a ; differentiable scalar 
56  59 
\param b ; differentiable vector 
57  60 
\return \f$ \frac{e^{a+bx}}{(1+e^{a+bx})} \f$ 
61 
\ingroup ECOL 

58  62 
**/ 
59  63 
dvar_vector logistic(const dvector& x, const prevariable& a, const dvar_vector& b) 
60  64 
{ 
...  ...  
70  74 
\param a ; differentiable vector 
71  75 
\param b ; differentiable vector 
72  76 
\return \f$ \frac{e^{a+bx}}{(1+e^{a+bx})} \f$ 
77 
\ingroup ECOL 

73  78 
**/ 
74  79 
dvar_vector logistic(const dvector& x, const dvar_vector& a, const dvar_vector& b) 
75  80 
{ 
...  ...  
87  92 
\param a ; differentiable scalar in a random effects model 
88  93 
\param b ; differentiable scalar in a random effects model 
89  94 
\return \f$ \frac{e^{a+bx}}{(1+e^{a+bx})} \f$ 
95 
\ingroup ECOL 

90  96 
**/ 
91  97 
df1b2variable logistic(const double& x, const df1b2variable& a, const df1b2variable& b) 
92  98 
{ 
...  ...  
100  106 
\param a ; differentiable scalar in a random effects model 
101  107 
\param b ; differentiable scalar in a random effects model 
102  108 
\return \f$ \frac{e^{a+bx}}{(1+e^{a+bx})} \f$ 
109 
\ingroup ECOL 

103  110 
**/ 
104  111 
df1b2vector logistic(const dvector& x, const df1b2variable& a, const df1b2variable& b) 
105  112 
{ 
...  ...  
113  120 
\param a ; differentiable vector in a random effects model 
114  121 
\param b ; differentiable scalar in a random effects model 
115  122 
\return \f$ \frac{e^{a+bx}}{(1+e^{a+bx})} \f$ 
123 
\ingroup ECOL 

116  124 
**/ 
117  125 
df1b2vector logistic(const dvector& x, const df1b2vector& a, const df1b2variable& b) 
118  126 
{ 
...  ...  
129  137 
\param a ; differentiable scalar in a random effects model 
130  138 
\param b ; differentiable vector in a random effects model 
131  139 
\return \f$ \frac{e^{a+bx}}{(1+e^{a+bx})} \f$ 
140 
\ingroup ECOL 

132  141 
**/ 
133  142 
df1b2vector logistic(const dvector& x, const df1b2variable& a, const df1b2vector& b) 
134  143 
{ 
...  ...  
142  151 
\param a ; differentiable vector in a random effects model 
143  152 
\param b ; differentiable vector in a random effects model 
144  153 
\return \f$ \frac{e^{a+bx}}{(1+e^{a+bx})} \f$ 
154 
\ingroup ECOL 

145  155 
**/ 
146  156 
df1b2vector logistic(const dvector& x, const df1b2vector& a, const df1b2vector& b) 
147  157 
{ 
Also available in: Unified diff