Nothing
#' @title normalDistribution
#' @description
#' Probability density distribution of a normally distributed variable.
#' @details
#' Calculates p(x | mu, sigma). Where p is the probability of observing an event x
#' given the expected value mu and the standard deviation sigma.
#' @param x The x-value (numeric)
#' @param mu The expextation value (numeric)
#' @param sigma The standard deviation (numeric)
#' @return The probability of observing event x given mu and sigma. (numeric)
#' @examples
#' y <- pguIMP::normalDistribution(x=5, mu=0.0, sigma=1.0)
#' @author Sebastian Malkusch, \email{malkusch@@med.uni-frankfurt.de}
#' @export
#'
normalDistribution = function(x="numeric", mu="numeric",sigma="numeric"){
y <- 1.0/(sigma*sqrt(2.0*pi)) *exp(-1.0 * ((x-mu)^2)/(2.0*sigma^2))
return(y)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.