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.poly - Function Up: functionalserver - Tool Previous: functionalserver.gaussian1d - Function


functionalserver.gaussian2d - Function



Package utility
Module functionals
Tool functionalserver


Create a 2D Gaussian function


Synopsis
gaussian2d(params)


Arguments

params in amplitude, centers, major width, ratio, angle of Gaussian
    Allowed: numeric
    Default: [1 0 0 1 1 0]


Returns
Functional


Description

Create a 2-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; centers at x,y=1; widths of 1 at x,y=[0,0,1,1,2,2]
- dfs.gaussian2d([2,1,1,1,1,0]).fdf([0,0,1,1,2,2])
[[1:3,]
    0.0078125 0.00390625 -0.0433217 -0.0433217 0.0866434 0.0433217 -0
    2         1          0          0          0         0         -0
    0.0078125 0.00390625 0.0433217  0.0433217  0.0866434 0.0433217 -0]





next up previous contents index
Next: functionalserver.poly - Function Up: functionalserver - Tool Previous: functionalserver.gaussian1d - 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