Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | utility | |
Module | functionals | |
Tool | functionalserver |
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 |
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.
# 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]