6 template<
class Type,
class T1,
class T2>
11 logres=-log(Type(sqrt(2*M_PI))*sd)-Type(.5)*x*x;
12 if(give_log)
return logres;
else return exp(logres);
R's spline function wrapped into template class that can be used with TMB.
Vector class used by TMB.
Type dnorm(Type x, Type mean, Type sd, int give_log=0)
Probability density function of the normal distribution.
Classes to construct multivariate negative log Gaussian density objects.
Easy access to AD library.
Extends Eigen::SparseMatrix class.
Kronecker product of two matrices.
Utility functions for TMB (automatically included)
Atomic interpolation operator.