Revision 593 trunk/contrib/statslib/statsLib.h

statsLib.h (revision 593)
34 34
dvariable dbinom( const prevariable& x,const prevariable& n,const prevariable& p );
35 35

  
36 36
// Negative binomial distribution
37
dvariable dnbinom( const double& x,const prevariable& size, const prevariable& mu );
37
dvariable dnbinom(const double& x,const prevariable& mu, const prevariable& size);
38
df1b2variable dnbinom(const double& x, const df1b2variable& mu, const df1b2variable& k);
39
df1b2variable dnbinom(const dvector& x, const df1b2vector& mu, const df1b2variable& k);
40
df1b2variable dnbinom(const dvector& x, const df1b2vector& mu, const df1b2vector& k);
41
dvariable dnbinom(const dvector& x, const dvar_vector& mu, const prevariable& k);
42
dvariable dnbinom(const dvector& x, const dvar_vector& mu, const dvar_vector& k);
38 43

  
44
// Zero Inflated Negative binomial distribution
45
df1b2variable dzinbinom(const double& x, const df1b2variable& mu, const df1b2variable& k, const df1b2variable& p);
46
dvariable dzinbinom(const double& x, const prevariable& mu, const prevariable& k, const prevariable& p);
47
df1b2variable dzinbinom(const dvector& x, const df1b2vector& mu, const df1b2variable& k, const df1b2variable& p);
48
df1b2variable dzinbinom(const dvector& x, const df1b2vector& mu, const df1b2vector& k, const df1b2variable& p);
49
dvariable dzinbinom(const dvector& x, const dvar_vector& mu, const prevariable& k, const prevariable& p);
50
dvariable dzinbinom(const dvector& x, const dvar_vector& mu, const dvar_vector& k, const prevariable& p);
51
df1b2variable dzinbinom(const dvector& x, const df1b2vector& mu, const df1b2variable& k, const df1b2vector& p);
52
df1b2variable dzinbinom(const dvector& x, const df1b2vector& mu, const df1b2vector& k, const df1b2vector& p);
53
dvariable dzinbinom(const dvector& x, const dvar_vector& mu, const prevariable& k, const dvar_vector& p);
54
dvariable dzinbinom(const dvector& x, const dvar_vector& mu, const dvar_vector& k, const dvar_vector& p);
55

  
39 56
// Gamma distribution
40 57
dvariable dgamma( const dvariable &x, const double& a, const double& b );
41 58
dvariable dgamma( const dvariable &x, const dvariable& a, const dvariable &b );
......
98 115
dvariable multifan(const int& n, const dmatrix obs, const dvar_matrix pred,double& nef);
99 116
dvariable multifan(const double& s,const dvector obsQ,const dvar_vector& preQ, double& nmle);
100 117

  
101
// Ecologically paramaterized negative binomial
102
/*
103
df1b2variable dnbinom_eco(const dvector& x, const df1b2vector& lambda, const df1b2variable& k);
104
df1b2variable dnbinom_eco(const dvector& x, const df1b2vector& lambda, const df1b2vector& k);
105
dvariable dnbinom_eco(const dvector& x, const dvar_vector& lambda, const prevariable& k);
106
dvariable dnbinom_eco(const dvector& x, const dvar_vector& lambda, const dvar_vector& k);
107
*/
108
// Ecologically paramaterized negative binomial with zero inflation
109
/*
110
df1b2variable dnbinom_eco_zi(const dvector& x, const df1b2vector& lambda, const df1b2variable& k, const df1b2variable& p);
111
df1b2variable dnbinom_eco_zi(const dvector& x, const df1b2vector& lambda, const df1b2vector& k, const df1b2variable& p);
112
dvariable dnbinom_eco_zi(const dvector& x, const dvar_vector& lambda, const prevariable& k, const prevariable& p);
113
dvariable dnbinom_eco_zi(const dvector& x, const dvar_vector& lambda, const dvar_vector& k, const prevariable& p);
114
df1b2variable dnbinom_eco_zi(const dvector& x, const df1b2vector& lambda, const df1b2variable& k, const df1b2vector& p);
115
df1b2variable dnbinom_eco_zi(const dvector& x, const df1b2vector& lambda, const df1b2vector& k, const df1b2vector& p);
116
dvariable dnbinom_eco_zi(const dvector& x, const dvar_vector& lambda, const prevariable& k, const dvar_vector& p);
117
dvariable dnbinom_eco_zi(const dvector& x, const dvar_vector& lambda, const dvar_vector& k, const dvar_vector& p);
118
*/
119 118

  
120 119
// Spline class and functions
121 120
typedef vcubic_spline_function * pvcubic_spline_function;
......
161 160
* numerous statistical functions
162 161
* that can be used in ADMB TPL files.
163 162
* 
164
* @author Chris Grandin, Steve Martell
163
* @author Chris Grandin, Steve Martell, Mollie Brooks
165 164
* 
166 165
* @date 12/14/2011
167 166
*/

Also available in: Unified diff