Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
The log of the normal density for the specified scalar(s) given the specified mean(s) and deviation(s).
y, mu, or sigma can each be either a scalar or a vector. Any vector inputs must be the same length.
The result log probability is defined to be the sum of the log probabilities for each observation/mean/deviation triple.
T_y | type of scalar |
T_loc | type of location parameter |
T_scale | type of scale parameter |
y | (Sequence of) scalar(s). |
mu | (Sequence of) location parameter(s) for the normal distribution. |
sigma | (Sequence of) scale parameters for the normal distribution. |
std::domain_error | if the scale is not positive. |
Definition at line 44 of file normal_lpdf.hpp.