Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


  >  Docs Center  >  Libraries  >  Markwardt  >  GAUSS2

GAUSS2

GAUSS2

Name


  GAUSS2

Author


  Craig B. Markwardt, NASA/GSFC Code 662, Greenbelt, MD 20770
  craigm@lheamail.gsfc.nasa.gov

Purpose


  Compute Gaussian curve given the mean, sigma and area.

Major Topics


  Curve and Surface Fitting

Calling Sequence


  YVALS = GAUSS2(X, Y, [XCENT, YCENT, SIGMA, PEAK])

Description



  This routine computes the values of a Gaussian function whose
  X-values, mean, sigma, and total area are given. It is meant to be
  a demonstration for curve-fitting.
  XVALS can be an array of X-values, in which case the returned
  Y-values are an array as well. The second parameter to GAUSS1
  should be an array containing the MEAN, SIGMA, and total AREA, in
  that order.

Inputs


  X - 2-dimensional array of "X"-values.
  Y - 2-dimensional array of "Y"-values.
  XCENT - X-position of gaussian centroid.
  YCENT - Y-position of gaussian centroid.
  SIGMA - sigma of the curve (X and Y widths are the same).
  PEAK - the peak value of the gaussian function.

Returns



  Returns the array of Y-values.

Example



  p = [2.2D, -0.7D, 1.4D, 3000.D]
  x = (dindgen(200)*0.1 - 10.) # (dblarr(200) + 1)
  y = (dblarr(200) + 1) # (dindgen(200)*0.1 - 10.)
  z = gauss2(x, y, p)
  Computes the values of the Gaussian at equispaced intervals in X
  and Y (spacing is 0.1). The gaussian has a centroid position of
  (2.2, -0.7), standard deviation of 1.4, and peak value of 3000.

References


Modification History


  Written, 02 Oct 1999, CM
  Added copyright notice, 25 Mar 2001, CM
  $Id: gauss2.pro,v 1.2 2001/03/25 18:55:13 craigm Exp $



© 2018 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us