Skip to main content

gaussian

gaussian(sigma, v) ⇒ number

This is not the standard gaussian. It lacks the normalization factor, standard gaussian would be weighted by 1 / √(2π * variance)

Kind: global function
Returns: number - Ranges from 0 to 1 (exclusive of 0)

ParamTypeDescription
sigmanumberStandard deviation. Distance from mean. Represents the "width" of the Gaussian-like curve. Note: The parameter is named sigma, but its placement in the formula means it scales inversely to the usual effect of sigma.
vnumberVariance. Represents the "height" or "amplitude" of the curve, but at a distance from the mean. Larger variance values result in larger function values further away from the mean (0).