normalDensity | R Documentation |
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.
normalDensity(mu, sigma)
mu |
the mean of the normal distribution. |
sigma |
the standard deviation of the normal distribution. |
Returns a callable function with a single parameter that describes the probability of the normal distribution in that point.
Other probability density distributions:
uniformDensity()
dist <- normalDensity(0,1)
dist(0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.