Functions |
dvariable | dnorm (const prevariable &x, const double &mu, const double &std) |
dvariable | dnorm (const prevariable &x, const double &mu, const double &std, bool bLog=true) |
df1b2variable | dnorm (const df1b2variable &x, const df1b2variable &mu, const df1b2variable &std, bool bLog=true) |
df1b2variable | dnorm (const df1b2variable &x, const double &mu, const double &std) |
df1b2variable | dnorm (const df1b2variable &x, const double &mu, const double &std, bool bLog=true) |
dvariable | dnorm (const dvar_vector &x, const double &mu, const double &std) |
dvariable | dnorm (const dvar_vector &x, const double &mu, const double &std, bool bLog=true) |
df1b2variable | dnorm (const df1b2vector &x, const double &mu, const double &std, bool bLog=true) |
dvariable | dnorm (const dvector &x, const prevariable &mu, const prevariable &std) |
dvariable | dnorm (const dvar_vector &residual, const prevariable &std) |
dvariable | dnorm (const dvar_vector &residual, const double &std) |
dvariable | dnorm (const dvar_vector &residual, const dvector &std) |
dvariable | dnorm (const dvar_vector &residual) |
dvariable | dnorm (const dmatrix &obs, const dvar_matrix &pred) |
dvariable | dnorm (const dvar_vector &residual, const dvar_vector std) |
Normal density functions.
- Author:
- Steven Martell
- Date:
- 2/05/2011
This file contains the negative loglikelihood functions for the normal distribution and is implemented to be consistent with the statistical program R with log=TRUE. The function dnorm is overloaded to accomodate single variables and vectors.
There are also overloaded versions where the user can specify the likelihood (i.e., log=FALSE)
The function is implemented as the negative log of the normal density function:
where is the mean and is the standard deviation.
The concentrated likelihood is implemented as:
where is a vector of residuals with an assumed mean 0.
Definition in file dnorm.cpp.