gauss: The Gaussian Function
Description
This function calculates the Gaussian function for an input data range.Usage
gauss(x, mean = 0, sigma = 1, norm = 1, bw = 0.1, ftype = "lin", ...)
Arguments
x
input values (typically a smooth data range)
mean
the mean(s) of the Gaussian function
norm
the normalisation(s) of the Gaussian function
bw
integration bin width sizes
ftype
type of input data [lin/log/ln]
...
additional arguments to be passed to 'integrate'
Value
A vector of length equal to the length of data representing the number density *per dex* at each input data point. Note: to convert the final number densities into their original bin-width (e.g., per 0.5 dex) multiply the output of this function by the bin-width.
See Also
The astronomy package: astro
.