Binomial density functions. More...
Go to the source code of this file.
Binomial density functions.
This file contains the negative loglikelihood functions for the binomial distribution. The function dbinom is overloaded to accommodate variable and data objects.
The negative log likelihood function is implemented as:
where is the probability and number of trials, and is the number of successes.
Definition in file dbinom.cpp.
dvariable dbinom | ( | const prevariable & | x, |
const double & | n, | ||
const double & | p | ||
) |
x | number of sucesses |
n | is the number of trials |
p | is the binomial probability |
Definition at line 39 of file dbinom.cpp.
dvariable dbinom | ( | const prevariable & | x, |
const prevariable & | n, | ||
const double & | p | ||
) |
x | number of sucesses |
n | is the number of trials |
p | is the binomial probability |
Definition at line 63 of file dbinom.cpp.
dvariable dbinom | ( | const prevariable & | x, |
const prevariable & | n, | ||
const prevariable & | p | ||
) |
x | number of sucesses |
n | is the number of trials |
p | is the binomial probability |
Definition at line 86 of file dbinom.cpp.
dvariable dbinom | ( | const dvar_vector & | x, |
const dvar_vector & | n, | ||
const dvar_vector & | p | ||
) |
x | is a vector of the number of sucesses |
n | is vector for the number of trials |
p | is a vector for the binomial probability |
Definition at line 110 of file dbinom.cpp.
dvariable dbinom | ( | const prevariable & | x, |
const dvar_vector & | n, | ||
const dvar_vector & | p | ||
) |
Definition at line 134 of file dbinom.cpp.
dvariable dbinom | ( | const dvar_vector & | x, |
const prevariable & | n, | ||
const dvar_vector & | p | ||
) |
Definition at line 157 of file dbinom.cpp.
dvariable dbinom | ( | const dvar_vector & | x, |
const dvar_vector & | n, | ||
const prevariable & | p | ||
) |
Definition at line 180 of file dbinom.cpp.
df1b2variable dbinom | ( | const df1b2variable & | x, |
const double & | n, | ||
const double & | p | ||
) |
Definition at line 203 of file dbinom.cpp.
df1b2variable dbinom | ( | const df1b2variable & | x, |
const df1b2variable & | n, | ||
const double & | p | ||
) |
x | number of sucesses |
n | is the number of trials |
p | is the binomial probability |
Definition at line 227 of file dbinom.cpp.
df1b2variable dbinom | ( | const df1b2variable & | x, |
const df1b2variable & | n, | ||
const df1b2variable & | p | ||
) |
x | number of sucesses |
n | is the number of trials |
p | is the binomial probability |
Definition at line 250 of file dbinom.cpp.
df1b2variable dbinom | ( | const df1b2vector & | x, |
const df1b2vector & | n, | ||
const df1b2vector & | p | ||
) |
x | is a vector of the number of sucesses |
n | is vector for the number of trials |
p | is a vector for the binomial probability |
Definition at line 274 of file dbinom.cpp.
df1b2variable dbinom | ( | const df1b2variable & | x, |
const df1b2vector & | n, | ||
const df1b2vector & | p | ||
) |
Definition at line 298 of file dbinom.cpp.
df1b2variable dbinom | ( | const df1b2vector & | x, |
const df1b2variable & | n, | ||
const df1b2vector & | p | ||
) |
Definition at line 321 of file dbinom.cpp.
df1b2variable dbinom | ( | const df1b2vector & | x, |
const df1b2vector & | n, | ||
const df1b2variable & | p | ||
) |
Definition at line 344 of file dbinom.cpp.
Generated on Tue Mar 8 2016 19:51:36 for ADMB Documentation by 1.8.0 |