


g = sumGauss(params, dimension)
Returns a matrix that is a weighted sum of several Gaussians.
params is in the form [width, halfwidth1, weight1, halfwidth2, weight2, ...
halfwidth3, weight3, ...]
dimension specifies whether the required sum of gaussians is 1-D or 2-D.
demension =1, 1-D; dimension = 2, 2-D. Defaults to 1.
Functions called: gauss, gauss2
Xuemei Zhang 10/24/95
Last Modified 1/28/95