Documentation for /home/davin/idl/socware/

Generated by IDLdoc

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

general/tools/fitting/

gauss.pro


FUNCTION: GAUSS PURPOSE: Evaluates a gaussian function with background. This function may be used with the "fit" curve fitting procedure. KEYWORDS: PARAMETERS: structure with the format: ** Structure <275ac0>, 6 tags, length=48, refs=1: H DOUBLE 1.0000000 ; hieght W DOUBLE 1.0000000 ; width X0 DOUBLE 0.0000000 ; center A0 DOUBLE 0.0000000 A1 DOUBLE 0.0000000 A2 DOUBLE 0.0000000 If this parameter is not a structure then it will be created. USAGE: p={h:2.,w:1.5,x0:5.0,a0:0.,a1:0.,a2:0.} x = findgen(100)/10. y = gaussian(x,par=p) plot,x,y RETURNS: p.a2*x^2 + p.a1*x + p.a0 + p.h * exp( - ((x-p.x0)/2/p.w)^2 )

Routines

top source gauss

result = gauss(x, parameters=parameters)

Parameters

x

Keywords

parameters

File attributes

Modification date: Thu Feb 13 16:43:13 2014
Lines: 10