Reply by robert bristow-johnson September 9, 20082008-09-09
On Sep 8, 4:47 pm, glen herrmannsfeldt <g...@ugcs.caltech.edu> wrote:
> robert bristow-johnson wrote: > > On Sep 7, 10:28 pm, kronec...@yahoo.co.uk wrote: > >>The sampling theorem tells us that we must sample at least twice the > >>bandwidth of a signal. > > actually, i think it's *more* than twice. we cannot, from one number, > > represent *both* the phase and the magnitude of the sinusoidal > > component at the Nyquist frequency. > > True, but there is usually zero probability of that case.
well, your spinner (which, if it lands utterly precisely at an angle of -180 degrees gives you a simple nyquist frequency input) doesn't decide what the input is. the devil gets to decide. if you have a continuous (but discrete-time) stream of ...-A, +A, -A, +A, ..., then you know there is a non-zero sinusoidal component at nyquist, but you don't know both the phase and magnitude of that component except that the magnitude is at least A.
> > Or, following another recent post, the Fourier transform > of the two are the same, assuming that the transform is > finite. (That the spectrum is continuous.) > > Only a delta function at Fs/2 will cause problems.
which, in the time domain, adds a component that looks like ...-A, +A, -A, +A... to the signal. it is possible (with vanishing likelihood), in a finite input sequence (DFT) or infinite input sequence (DTFT), to have that alternating-sign component added to dota that would actually cause a form of aliasing by the delta function at -Fs/2 being aliased with the delta at +Fs/2. they'll add and you'll lose the phase information. r b-j
Reply by glen herrmannsfeldt September 8, 20082008-09-08
robert bristow-johnson wrote:

> On Sep 7, 10:28 pm, kronec...@yahoo.co.uk wrote:
>>The sampling theorem tells us that we must sample at least twice the >>bandwidth of a signal.
> actually, i think it's *more* than twice. we cannot, from one number, > represent *both* the phase and the magnitude of the sinusoidal > component at the Nyquist frequency.
True, but there is usually zero probability of that case. Or, following another recent post, the Fourier transform of the two are the same, assuming that the transform is finite. (That the spectrum is continuous.) Only a delta function at Fs/2 will cause problems. -- glen
Reply by HardySpicer September 8, 20082008-09-08
On Sep 9, 4:33 am, "SteveSmith" <Steve.Smi...@SpectrumSDI.com> wrote:
> >The sampling theorem tells us that we must sample at least twice the > >bandwidth of a signal. > > In this statement, "bandwidth" means the highest frequency in the signal > measured from DC. > > > suppose we have a signal centered on 1GHz that goes up to 1GHz + > >5kHz and down to 1GHz-5kHz. ... what do I sample at? > > The highest frequency in this signal is 1 GHz + 5 kHz. To comply with the > sampling theorem you must sample at twice this rate. > > [I should mention that there is a technique where you can sample such a > narrow-band signal at a lower rate, and use the aliasing to downconvert the > signal to baseband in the process. But I doubt this is the question you > have.] > > Regards, > Steve
Actually it was the question since I don't classify sampling at (more than) twice the bandwidth of a bandpass signal as sub-sampling. This is Nyquists theorem and not sampling at twie the highest frequency.
Reply by Jerry Avins September 8, 20082008-09-08
kronecker@yahoo.co.uk wrote:
> On Sep 8, 3:27 pm, robert bristow-johnson <r...@audioimagination.com> > wrote: >> On Sep 7, 10:28 pm, kronec...@yahoo.co.uk wrote: >> >>> The sampling theorem tells us that we must sample at least twice the >>> bandwidth of a signal. >> actually, i think it's *more* than twice. we cannot, from one number, >> represent *both* the phase and the magnitude of the sinusoidal >> component at the Nyquist frequency. >> >>> When the signal is centered around dc to some >>> max freq say Fmax than we can say Fs>=2Fmax. >> no, just Fs > 2*Fmax . >> >>> However, when the signal >>> is centred around some other higher frequency (say Fc), how is >>> bandwidth defined? >>> is it from Fc (the center freq) to the max value or from Fc-minfreq >>> to Fc + maxfreq ? If you apply teh same rules it should be Fc to Fc + >>> maxfreq only if you consider it to be a shifter version of one >>> centered around dc? >> it's a different definition of bandwidth. remember, a real signal >> that is centered at Fc has a mirror component at -Fc. so comparing >> bandwidths centered only at +Fc to ones centered at DC, you should >> only compare the centered at Fc to one centered at maxfreq/2 with >> width on both sides also maxfreq/2. they would both have bandwidth of >> maxfreq, if defined consistently. >> >>> eg suppose we have a signal centered on 1GHz that goes up to 1GHz + >>> 5kHz and down to 1GHz-5kHz. Is the bandwidth 5kHz or 10 kHz and >>> therefore what do I sample at? >> if there was no inherent symmetry between the upper half and lower >> half, it's 10 kHz. if there is a mirror symmetry of the upper and >> lower half, it's 5 kHz. >> >> r b-j > > So if I had a complex signal with a bandwidth from maxfreq to minfreq > (ie no mirror image frequencies) I would need to sample at (for the > same example) > greater than 2X 10kHz since 10Khz is the bandwidth?
No. 10 KHz would be enough for _each_ of the I and Q parts. Jerry -- Engineering is the art of making what you want from things you can get. &#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;
Reply by SteveSmith September 8, 20082008-09-08
>The sampling theorem tells us that we must sample at least twice the >bandwidth of a signal.
In this statement, "bandwidth" means the highest frequency in the signal measured from DC.
> suppose we have a signal centered on 1GHz that goes up to 1GHz + >5kHz and down to 1GHz-5kHz. ... what do I sample at?
The highest frequency in this signal is 1 GHz + 5 kHz. To comply with the sampling theorem you must sample at twice this rate. [I should mention that there is a technique where you can sample such a narrow-band signal at a lower rate, and use the aliasing to downconvert the signal to baseband in the process. But I doubt this is the question you have.] Regards, Steve
Reply by robert bristow-johnson September 8, 20082008-09-08
On Sep 8, 12:19&#4294967295;am, kronec...@yahoo.co.uk wrote:
> > So if I had a complex signal with a bandwidth from maxfreq to minfreq > (ie no mirror image frequencies)
if there is *no* mirror image frequencies (at the negative frequencies), then your complex signal is a special kind of complex signal that we call the "analytic signal" and the imaginary part is the Hilbert transform of the real part and thus doesn't offer new information.
> I would need to sample at (for the > same example) > greater than 2X 10kHz since 10Khz is the bandwidth?
assuming that, with some analog process, you heterodyne this 10 kHz wide complex signal down with the left edge at DC. sampling will cause the spectrum to be duplicated, shifted by multiples of your sampling rate (a milli-smidgen more than 10 kHz), overlapped and added. you don't want non-zero parts to overlap and add. once two numbers are added and you know only the sum, it's hard to split it back up and recover the knowledge of what the two numbers were. r b-j
Reply by naresh September 8, 20082008-09-08
On Sep 8, 7:28&#4294967295;am, kronec...@yahoo.co.uk wrote:
> The sampling theorem tells us that we must sample at least twice the > bandwidth of a signal. When the signal is centered around dc to some > max freq say Fmax than we can say Fs>=2Fmax. However, when the signal > is centred around some other higher frequency (say Fc), how is > bandwidth defined? > > is it from Fc (the center freq) &#4294967295;to the max value or from Fc-minfreq > to Fc + maxfreq ? If you apply teh same rules it should be Fc to Fc + > maxfreq only if you consider it to be a shifter version of one > centered around dc? > > eg suppose we have a signal centered on 1GHz that goes up to 1GHz + > 5kHz and down to 1GHz-5kHz. Is the bandwidth 5kHz or 10 kHz and > therefore what do I sample at?
Bandwidth is the range overwhich signal exists. For the dc centered one it starts from 0 to maximum frequency. For Fc centered signal we have to consider the frequency ranges two sides of the center frequency. Suppose your signal is centered but it is one sided then it is like dc centered and bandwidth is (Fc+fmax- Fc).So your signal is two sided you have to consider both sides for bandwidth calculation (Fc+famx-Fc +fcmin). For your example the bandwidth is 10khz so your sampling frequency should be >=2*10khz
Reply by Tim Wescott September 8, 20082008-09-08
On Sun, 07 Sep 2008 19:28:58 -0700, kronecker wrote:

> The sampling theorem tells us that we must sample at least twice the > bandwidth of a signal. When the signal is centered around dc to some max > freq say Fmax than we can say Fs>=2Fmax. However, when the signal is > centred around some other higher frequency (say Fc), how is bandwidth > defined? > > is it from Fc (the center freq) to the max value or from Fc-minfreq to > Fc + maxfreq ? If you apply teh same rules it should be Fc to Fc + > maxfreq only if you consider it to be a shifter version of one centered > around dc? > > eg suppose we have a signal centered on 1GHz that goes up to 1GHz + 5kHz > and down to 1GHz-5kHz. Is the bandwidth 5kHz or 10 kHz and therefore > what do I sample at?
See if this helps, I have a section on bandpass sampling in it: http:// www.wescottdesign.com/articles/Sampling/sampling.html. -- Tim Wescott Wescott Design Services http://www.wescottdesign.com Do you need to implement control loops in software? "Applied Control Theory for Embedded Systems" gives you just what it says. See details at http://www.wescottdesign.com/actfes/actfes.html
Reply by September 8, 20082008-09-08
On Sep 8, 3:27 pm, robert bristow-johnson <r...@audioimagination.com>
wrote:
> On Sep 7, 10:28 pm, kronec...@yahoo.co.uk wrote: > > > The sampling theorem tells us that we must sample at least twice the > > bandwidth of a signal. > > actually, i think it's *more* than twice. we cannot, from one number, > represent *both* the phase and the magnitude of the sinusoidal > component at the Nyquist frequency. > > > When the signal is centered around dc to some > > max freq say Fmax than we can say Fs>=2Fmax. > > no, just Fs > 2*Fmax . > > > However, when the signal > > is centred around some other higher frequency (say Fc), how is > > bandwidth defined? > > > is it from Fc (the center freq) to the max value or from Fc-minfreq > > to Fc + maxfreq ? If you apply teh same rules it should be Fc to Fc + > > maxfreq only if you consider it to be a shifter version of one > > centered around dc? > > it's a different definition of bandwidth. remember, a real signal > that is centered at Fc has a mirror component at -Fc. so comparing > bandwidths centered only at +Fc to ones centered at DC, you should > only compare the centered at Fc to one centered at maxfreq/2 with > width on both sides also maxfreq/2. they would both have bandwidth of > maxfreq, if defined consistently. > > > eg suppose we have a signal centered on 1GHz that goes up to 1GHz + > > 5kHz and down to 1GHz-5kHz. Is the bandwidth 5kHz or 10 kHz and > > therefore what do I sample at? > > if there was no inherent symmetry between the upper half and lower > half, it's 10 kHz. if there is a mirror symmetry of the upper and > lower half, it's 5 kHz. > > r b-j
So if I had a complex signal with a bandwidth from maxfreq to minfreq (ie no mirror image frequencies) I would need to sample at (for the same example) greater than 2X 10kHz since 10Khz is the bandwidth?
Reply by robert bristow-johnson September 8, 20082008-09-08
On Sep 7, 10:28 pm, kronec...@yahoo.co.uk wrote:
> The sampling theorem tells us that we must sample at least twice the > bandwidth of a signal.
actually, i think it's *more* than twice. we cannot, from one number, represent *both* the phase and the magnitude of the sinusoidal component at the Nyquist frequency.
> When the signal is centered around dc to some > max freq say Fmax than we can say Fs>=2Fmax.
no, just Fs > 2*Fmax .
> However, when the signal > is centred around some other higher frequency (say Fc), how is > bandwidth defined? > > is it from Fc (the center freq) to the max value or from Fc-minfreq > to Fc + maxfreq ? If you apply teh same rules it should be Fc to Fc + > maxfreq only if you consider it to be a shifter version of one > centered around dc?
it's a different definition of bandwidth. remember, a real signal that is centered at Fc has a mirror component at -Fc. so comparing bandwidths centered only at +Fc to ones centered at DC, you should only compare the centered at Fc to one centered at maxfreq/2 with width on both sides also maxfreq/2. they would both have bandwidth of maxfreq, if defined consistently.
> eg suppose we have a signal centered on 1GHz that goes up to 1GHz + > 5kHz and down to 1GHz-5kHz. Is the bandwidth 5kHz or 10 kHz and > therefore what do I sample at?
if there was no inherent symmetry between the upper half and lower half, it's 10 kHz. if there is a mirror symmetry of the upper and lower half, it's 5 kHz. r b-j