From help-request at octave dot org Thu Jul 7 09:55:04 2005 Subject: Re: Convolving a non-uniformly sampled signal with a Gaussian From: "Robert A. Macy" To: =?ISO-8859-1?Q?S=F8ren?= Hauberg Cc: help at octave dot org Date: Thu, 07 Jul 2005 07:50:27 -0700 I'm going to guess... You *have* to make a uniform distribution along the function in order for the integration of the convolution to work properly. When there was no alternative to "gsplot"ing an array that had nonuniform steps (similar to your problem) and I had to convert to uniform steps; I wrote a simple program for uniform interpolation. I'll send it to you separately due to size. [Lot's of boiler plate for error checking] - Robert - On Thu, 07 Jul 2005 15:43:22 +0200 Søren Hauberg wrote: > Hi > I have a signal that I need to convolve with a Gaussian > (or another similar filter). The problem is that the > signal is not uniformly sampled, meaning I can't use conv > directly. My first thought was to interpolate the signal, > perform convolution, and then resample, but I don't want > to do this as the function that generated isn't > continuos. > > Does anybody know a easy way to do this, or do I have to > implement this from scratch. > > /Søren > ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------