DSPRelated.com
Forums
Online · Live + on demand
February 9-11, 2027
Price goes up Jan 1: register now to lock in today's rate
Register Now →

How much may I decimate?

Started by Richard Owlett ●February 16, 2006
Richard Owlett wrote:
> Joerg wrote: > > FFT wins if you have lots of bins to look at, a dozen or so. But for two > > bins almost any kind of DFT would require less horses from the processor. > > What is "DFT"? > OK, I Goggled and was referred to answers.com which stated "The DFT can > be computed efficiently in practice using a fast Fourier transform (FFT) > algorithm."
An FFT is a fast way of computing all n complex DFT bins, which are just correlations against a bunch of orthogonal sin/cos vectors. Computing just one or two correlation bins is very likely much faster than any fancy method of computing all n (for n > 2), and if you want you can pick bins that aren't necessarily orthogonal. IMHO. YMMV. -- rhn A.T nicholson d.0.t C-o-M
Ron N. wrote:
> Richard Owlett wrote: > >>Joerg wrote: >> >>>FFT wins if you have lots of bins to look at, a dozen or so. But for two >>>bins almost any kind of DFT would require less horses from the processor. >> >>What is "DFT"? >>OK, I Goggled and was referred to answers.com which stated "The DFT can >>be computed efficiently in practice using a fast Fourier transform (FFT) >>algorithm." > > > An FFT is a fast way of computing all n complex DFT bins, which are > just correlations against a bunch of orthogonal sin/cos vectors. > Computing just one or two correlation bins is very likely much faster > than any fancy method of computing all n (for n > 2), and if you want > you can pick bins that aren't necessarily orthogonal. >
Might you be implying that I could simplify by choosing appropriate set of basis vectors ;) LOL cause I'm beginning to realize what profs wished to drill into my thick skull >40 years ago.
Hello Richard,


> LOL cause I'm beginning to realize what profs wished to drill into my > thick skull >40 years ago.
Yeah, sometimes I wish I had paid more attention as well. Like when I was breaking a sweat calculating PID loops. I didn't like my control theory prof much but now I realize that should not have mattered. Oh well. It's never too late. Analog Devices has some nice white papers explaining all this digital filter stuff. I don't remember where it's on their server (they have a tendency to switch URLs) but I gave it to a client's engineer a few years ago. He said that finally cleared up what he never understood from his prof. Regards, Joerg http://www.analogconsultants.com
Joerg wrote:
> Hello Richard, > > >> LOL cause I'm beginning to realize what profs wished to drill into my >> thick skull >40 years ago. > > > > Yeah, sometimes I wish I had paid more attention as well. Like when I > was breaking a sweat calculating PID loops. I didn't like my control > theory prof much but now I realize that should not have mattered. Oh well. > > It's never too late. Analog Devices has some nice white papers > explaining all this digital filter stuff. I don't remember where it's on > their server (they have a tendency to switch URLs) but I gave it to a > client's engineer a few years ago. He said that finally cleared up what > he never understood from his prof.
Richard has Rick's book. He should read that, or at least put it under his pillow at night. Jerry -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������
Jerry Avins wrote:

> Joerg wrote: > >> Hello Richard, >> >> >>> LOL cause I'm beginning to realize what profs wished to drill into my >>> thick skull >40 years ago. >> >> >> >> >> Yeah, sometimes I wish I had paid more attention as well. Like when I >> was breaking a sweat calculating PID loops. I didn't like my control >> theory prof much but now I realize that should not have mattered. Oh >> well. >> >> It's never too late. Analog Devices has some nice white papers >> explaining all this digital filter stuff. I don't remember where it's >> on their server (they have a tendency to switch URLs) but I gave it to >> a client's engineer a few years ago. He said that finally cleared up >> what he never understood from his prof. > > > Richard has Rick's book.
Yepp
> He should read that,
dun dat
> or at least put it under his pillow at night.
too hard
> > Jerry
Anyone who gets thru to me deserves "Newbery medal" as well as such minor recognition as Nobel ;) [see http://www.ala.org/ala/alsc/awardsscholarships/literaryawds/newberymedal/newberymedal.htm ;] BTW a former dean of Cornell's College of Engineering once defined an engineer as one who knew where to get the answer (ie comp.dsp). s'alrite already twas a loose paraphrase ;) [For other reasons I have already asked Cornell for an exact quotation]
Richard Owlett wrote:

   ...

> BTW a former dean of Cornell's College of Engineering once defined an > engineer as one who knew where to get the answer (ie comp.dsp).
That's a point where the professions of law and engineering converge. ... Jerry -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������
Jerry Avins wrote:

> Richard Owlett wrote: > > ... > >> BTW a former dean of Cornell's College of Engineering once defined an >> engineer as one who knew where to get the answer (ie comp.dsp). > > > That's a point where the professions of law and engineering converge. > > ... > > Jerry
Oh is that why they are across street from each other on the Ithaca campus? It *is* the law school that's connected to the chapel however ;}
Jerry Avins wrote:
> Richard Owlett wrote: > > My raw signal is sampled once per second. > > The two effects I wish to investigate have rep rates of > > once per 24.0000 hours > > once per ~23.8833 hours > > > > Initially I'll have data for 30 days. > > Eventually will have data for >= 360 days. > > > > How safe am I decimating fft input to once per .1 hours? > > The necessary sample rate is set by the highest frequency in your data, > not by the frequencies you're interested in. The sample frequency must > exceed the highest noticeable component by a factor exceeding 2, and 3 > is easier to work with. How strong a component is "noticeable" depends > on the application. > > If you are certain that your data contain no higher frequencies than > 1/day (either inherently or because you filtered it) you can be quite > comfortable with one sample every 6 hours. How did you arrive at your > figure of 6 minutes? >
However to get the required resolution one might require at least 400 to 500 samples at the 6 hourly rate..or about a 100 or so days. Regards Rocky
Rocky wrote:
> Jerry Avins wrote: > >>Richard Owlett wrote: >> >>>My raw signal is sampled once per second. >>>The two effects I wish to investigate have rep rates of >>> once per 24.0000 hours >>> once per ~23.8833 hours >>> >>>Initially I'll have data for 30 days. >>>Eventually will have data for >= 360 days. >>> >>>How safe am I decimating fft input to once per .1 hours? >> >>The necessary sample rate is set by the highest frequency in your data, >>not by the frequencies you're interested in. The sample frequency must >>exceed the highest noticeable component by a factor exceeding 2, and 3 >>is easier to work with. How strong a component is "noticeable" depends >>on the application. >> >>If you are certain that your data contain no higher frequencies than >>1/day (either inherently or because you filtered it) you can be quite >>comfortable with one sample every 6 hours. How did you arrive at your >>figure of 6 minutes? >> > > However to get the required resolution one might require at least 400 > to 500 samples at the 6 hourly rate..or about a 100 or so days. > Regards
The beat period between his two frequencies of interest is about 90 days. At least that much sampling time will be needed whatever the rate used. 120 days will make the distinction clearer. Jerry -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������