print

Function: gaussian

Reference

Home

List of PyCrysFML08 Dictionaries

List of PyCrysFML08 Functions

USE

gaussian returns the value of the gaussian function:

f = (1 / (sigma * sqrt(2pi))) * exp(-0.5 * (x / sigma)**2)

function call

r = gaussian(x : float,fwhm : float)

VariableTypeDescription
xfloatValue at which the function is evaluated.
fwhmfloatFull width at half maximum; fwhm = 2 * sqrt(2*ln2) * sigma
rtuple

The tuple returned by the function.

r[0] : int, error code. If non-zero, an error has occurred.

r[1] : str, error message.

r[2]: float, value of the function at x.

examples