SCULIB_GAUSS_WTINIT

Generate a weighting function for rebinning

Description:

A Gaussian weighting function The look up table is initialised such that one can access the weight directly given the square of the distance between the input and output pixel. The scale length is taken to be radius at half-width-half-max The gaussian should go out to a radius of at least 3 scale lengths ( <0.2% of peak). Governed by the RADIUS argument The function is simply taken as F(x) = exp(-X2) where the scale size (FWHM) is at X = SQRT(loge(2))

Invocation

CALL SCULIB_GAUSS_WTINIT (WTFN, RADIUS, RES, STATUS)

Arguments

WTFN ( RADIUS RADIUS RES RES + 1) = REAL (Returned)
The weighting function generated by this routine. The index corresponds to the square of the distance from the centre in scale units.
RADIUS = INTEGER (Given)
Size of the weighting function in scale units.
RES = INTEGER (Given)
Number of points per scale lenghth.
STATUS = INTEGER (Given & Returned)
Global status

Copyright

Copyright ©1995,1996,1997,1998,1999 Particle Physics and Astronomy Research Council. All Rights Reserved.