powered by
Computes the probability density at a value for a continuous distribution.
probabilitydensity(object, val, log = FALSE, normalize = TRUE)
A continuous probability distribution.
The point at which the probability density should be computed.
If TRUE, the logarithm of the probability density is returned.
If FALSE, unnormalized densities are returned.
The probability density at val.
val
# NOT RUN { probabilitydensity(normal(), 1) probabilitydensity(mnormal(c(0,0), diag(2)), c(1,1)) # }
Run the code above in your browser using DataLab