normalDensity {RVCompare} | R Documentation |
The probability density function of the normal distribution
Description
Returns the density function of the normal distribution with mean mu and standard deviation sigma. The returned function is a single parameter function that returns the probability of the normal distribution in that point. It is just a convinient wrapper of dnorm from the package 'stat' with some parameter checks.
Usage
normalDensity(mu, sigma)
Arguments
mu |
the mean of the normal distribution. |
sigma |
the standard deviation of the normal distribution. |
Value
Returns a callable function with a single parameter that describes the probability of the normal distribution in that point.
See Also
Other probability density distributions:
uniformDensity()
Examples
dist <- normalDensity(0,1)
dist(0)
[Package RVCompare version 0.1.8 Index]