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

1  1 
#include <admodel.h> 
2  2 
#include <df1b2fun.h> 
3  3 
#include <adrndeff.h> 
4 
#include "ecolib.h" 

5  4  
6  5 
/*3rd variable is a scalar*/ 
7  6 
/*2nd variable is a scalar*/ 
...  ...  
11  10 
\param b ; differentiable scalar 
12  11 
\param c ; differentiable scalar 
13  12 
\return \f$ \frac{ax}{b+x^c} \f$ 
13 
\ingroup ECOL 

14  14 
**/ 
15  15 
dvariable Shepherd(const double& x, const prevariable& a, const prevariable& b, const prevariable& c) 
16  16 
{ 
...  ...  
27  27 
\param b ; differentiable scalar 
28  28 
\param c ; differentiable scalar 
29  29 
\return \f$ \frac{ax}{b+x^c} \f$ 
30 
\ingroup ECOL 

30  31 
**/ 
31  32 
dvar_vector Shepherd(const dvector& x, const prevariable& a, const prevariable& b, const prevariable& c) 
32  33 
{ 
...  ...  
43  44 
\param b ; differentiable scalar 
44  45 
\param c ; differentiable scalar 
45  46 
\return \f$ \frac{ax}{b+x^c} \f$ 
47 
\ingroup ECOL 

46  48 
**/ 
47  49 
dvar_vector Shepherd(const dvector& x, const dvar_vector& a, const prevariable& b, const prevariable& c) 
48  50 
{ 
...  ...  
60  62 
\param b ; differentiable vector 
61  63 
\param c ; differentiable scalar 
62  64 
\return \f$ \frac{ax}{b+x^c} \f$ 
65 
\ingroup ECOL 

63  66 
**/ 
64  67 
dvar_vector Shepherd(const dvector& x, const prevariable& a, const dvar_vector& b, const prevariable& c) 
65  68 
{ 
...  ...  
76  79 
\param b ; differentiable vector 
77  80 
\param c ; differentiable scalar 
78  81 
\return \f$ \frac{ax}{b+x^c} \f$ 
82 
\ingroup ECOL 

79  83 
**/ 
80  84 
dvar_vector Shepherd(const dvector& x, const dvar_vector& a, const dvar_vector& b, const prevariable& c) 
81  85 
{ 
...  ...  
94  98 
\param b ; differentiable scalar 
95  99 
\param c ; differentiable vector 
96  100 
\return \f$ \frac{ax}{b+x^c} \f$ 
101 
\ingroup ECOL 

97  102 
**/ 
98  103 
dvar_vector Shepherd(const dvector& x, const prevariable& a, const prevariable& b, const dvar_vector& c) 
99  104 
{ 
...  ...  
110  115 
\param b ; differentiable scalar 
111  116 
\param c ; differentiable vector 
112  117 
\return \f$ \frac{ax}{b+x^c} \f$ 
118 
\ingroup ECOL 

113  119 
**/ 
114  120 
dvar_vector Shepherd(const dvector& x, const dvar_vector& a, const prevariable& b, const dvar_vector& c) 
115  121 
{ 
...  ...  
127  133 
\param b ; differentiable vector 
128  134 
\param c ; differentiable vector 
129  135 
\return \f$ \frac{ax}{b+x^c} \f$ 
136 
\ingroup ECOL 

130  137 
**/ 
131  138 
dvar_vector Shepherd(const dvector& x, const prevariable& a, const dvar_vector& b, const dvar_vector& c) 
132  139 
{ 
...  ...  
143  150 
\param b ; differentiable vector 
144  151 
\param c ; differentiable vector 
145  152 
\return \f$ \frac{ax}{b+x^c} \f$ 
153 
\ingroup ECOL 

146  154 
**/ 
147  155 
dvar_vector Shepherd(const dvector& x, const dvar_vector& a, const dvar_vector& b, const dvar_vector& c) 
148  156 
{ 
...  ...  
162  170 
\param b ; differentiable scalar in a random effects model 
163  171 
\param c ; differentiable scalar in a random effects model 
164  172 
\return \f$ \frac{ax}{b+x^c} \f$ 
173 
\ingroup ECOL 

165  174 
**/ 
166  175 
df1b2variable Shepherd(const double& x, const df1b2variable& a, const df1b2variable& b, const df1b2variable& c) 
167  176 
{ 
...  ...  
176  185 
\param b ; differentiable scalar in a random effects model 
177  186 
\param c ; differentiable scalar in a random effects model 
178  187 
\return \f$ \frac{ax}{b+x^c} \f$ 
188 
\ingroup ECOL 

179  189 
**/ 
180  190 
df1b2vector Shepherd(const dvector& x, const df1b2variable& a, const df1b2variable& b, const df1b2variable& c) 
181  191 
{ 
Also available in: Unified diff