Revision 1239 trunk/contrib/statslib/statsLib.h
statsLib.h (revision 1239)  

4  4 
#include <fvar.hpp> 
5  5 
#include <admodel.h> 
6  6 
#include <df1b2fun.h> 
7 
#include <adrndeff.h> 

7  8  
8  9 
dvar_matrix ageLengthKey( const dvar_vector& mu, const dvar_vector& sig, const dvector& x ); 
9  10 
dmatrix ageLengthKey( const dvector& mu, const dvector& sig, const dvector& x ); 
...  ...  
69  70 
// Normal distribution 
70  71 
dvariable dnorm( const prevariable& x, const double& mu, const double& std ); 
71  72 
dvariable dnorm( const dvar_vector& x, const double& mu, const double& std ); 
73 
dvariable dnorm( const prevariable& x, const double& mu, const double& std, bool bLog ); 

72  74 
dvariable dnorm( const dvector& x, const prevariable& mu, const prevariable& std ); 
75 
dvariable dnorm( const dvector& x, const prevariable& mu, const prevariable& std, bool dLog ); 

73  76 
dvariable dnorm( const dvar_vector& residual, const prevariable& std ); 
74  77 
dvariable dnorm( const dvar_vector& residual, const double& std ); 
75  78 
dvariable dnorm( const dvar_vector& residual, const dvector& std ); 
76  79 
dvariable dnorm( const dvar_vector& residual, const dvar_vector std ); 
77  80 
dvariable dnorm( const dvar_vector& residual ); 
78  81 
dvariable dnorm( const dmatrix& obs, const dvar_matrix& pred ); 
82 
df1b2variable dnorm( const df1b2variable& x, const double& mu, const double& std ); 

83 
df1b2variable dnorm( const df1b2variable& x, const double& mu, const double& std, bool bLog ); 

84 
df1b2variable dnorm( const df1b2variable& x, const df1b2variable& mu, const df1b2variable& std, bool bLog ); 

85 
df1b2variable dnorm( const df1b2vector& x, const df1b2variable& mu, const df1b2variable& std, bool dLog ); 

79  86  
87  
80  88 
// Plogis distribution 
81  89 
dvariable plogis( const prevariable& x, const double& location, const double& scale ); 
82  90 
dvariable plogis( const prevariable& x, const prevariable& location, const prevariable& scale ); 
...  ...  
124  132 
// Spline class and functions 
125  133 
typedef vcubic_spline_function * pvcubic_spline_function; 
126  134  
135 
/** 

136 
* \brief A class for implementin cubic splines 

137 
* \author Dave Fournier, Jim Ianelli, Steve Martell 

138 
* \remarks 

139 
* Uses cubic spline interpolation. 

140 
**/ 

127  141 
class vcubic_spline_function_array 
128  142 
{ 
129  143 
public: 
...  ...  
161  175 
* @file statsLib.h 
162  176 
* @brief Library of statistic functions 
163  177 
* \ingroup STATLIB 
178 
* \remarks 

164  179 
* This library contains declaratioins for 
165  180 
* numerous statistical functions 
166  181 
* that can be used in ADMB TPL files. 
167  182 
* 
168 
* @author Chris Grandin, Steve Martell, Mollie Brooks


183 
* @author Steve Martell, Chris Grandin, Mollie Brooks


169  184 
* 
170  185 
* @date 12/14/2011 
171  186 
*/ 
Also available in: Unified diff