1. A method comprising: using a computing device to compute a first function as a combination of (i) an exponential decay function, a decay factor for which is chosen based on a Gaussian function, and (ii) at least a second function that is obtained by one or more convolution operations on the decay function, the first function providing an approximation of at least a portion of the Gaussian function.