Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: functionalserver.gaussian2d - Function Up: functionalserver - Tool Previous: functionalserver.functional - Function


functionalserver.gaussian1d - Function



Package utility
Module functionals
Tool functionalserver


Create a 1D Gaussian function


Synopsis
gaussian1d(height, center, width)


Arguments

height in amplitude of Gaussian, or 3 values
    Allowed: numeric
    Default: 1
center in center of Gaussian
    Allowed: numeric
    Default: 0
width in HPBW width of Gaussian
    Allowed: numeric
    Default: 1


Returns
Functional


Description

Create a 1-dimensional Gaussian with the specified height, width and center. The created functional has methods f and fdf to calculate the function value at a series of x values, or the value and the derivatives with respect to the parameters.



Example
# get the value and derivatives of a Gaussian with
# height=2; center at x=1; a width of 1 at x=[0,1,2]
- dfs.gaussian1d([2,1,1]).fdf([0,1,2])
[[1:3,]
    0.125 0.0625 -0.693147 0.693147
    2     1      0         0
    0.125 0.0625 0.693147  0.693147]





next up previous contents index
Next: functionalserver.gaussian2d - Function Up: functionalserver - Tool Previous: functionalserver.functional - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15