Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | utility | |
Module | functionals | |
Tool | functionalserver |
params | in | amplitude, centers, major width, ratio, angle of Gaussian | |
Allowed: | numeric | ||
Default: | [1 0 0 1 1 0] |
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.
# 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]