Chris Beaumont's IDL Library

Download source code

single page | use frames     summary     class     fields     routine details     file attributes

./

cnb_voigt.pro

Routines

result = cnb_voigt(x, sigma, gamma)

This function computes centered Voigt profiles.

test

Routine details

topcnb_voigt

result = cnb_voigt(x, sigma, gamma)

This function computes centered Voigt profiles. It is a wrapper to the builtin IDL VOIGT routine, which uses a somewhat confusing variable convention. The Voigt function implemented here is a stright convolution of a Gaussian with a Lorentzian.

Return value

The voigt profile with the specified sigma, gamma, evaluated at x.

MODIFIATION HISTORY: October 2010: Written by Chris Beaumont

Parameters

x in required

The abcissa values. The profile will be centered on x=0. Scalar or vector.

sigma in required

The width of the Gaussian part of the profile. Scalar or vector

gamma in required

The width of the Lorentzian part of the profile. Scalar or vector

toptest

test

File attributes

Modifcation date: Fri Oct 8 11:20:27 2010
Lines: 73