[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Correct method for "compressing" a power spectrum
From: |
Marcus D. Leech |
Subject: |
Re: [Discuss-gnuradio] Correct method for "compressing" a power spectrum |
Date: |
Mon, 09 Mar 2009 12:27:04 -0400 |
User-agent: |
Thunderbird 2.0.0.19 (X11/20090105) |
Bob McGwier wrote:
>
> I suggest that the best algorithm for this would be the rank order
> mean alternated with the max so long as you are going to insert
> "heuristic grass". So it would be max, ROM, max, ROM, .....
>
>
> Let [B1, B2, B3, B4, ... BN] be powers of five adjacent bins.
>
> Put them in rank order
>
> [R1, R2, R3, R4, ... RN]
>
> If N is even, the rank order mean is (R_(N/2) + R_/(N/2 +1)*0.5.
> If N is odd, the rank order mean is R_(N/2 +0.5)
>
> But I still see a problem:
>
> I suggest that in order to prevent "scalloping" of a swept tone across
> this algorithm or any other like it, that some "bin" in the lossy
> compression set of bins must ALWAYS be forced to take on the large of
> the power spectrum otherwise your alternative min/max/min/max might
> jump up and down as you sweep a tone through it. Or did I miss
> something?
>
> Bob
I love that phrase, Bob. "Heuristic grass".
I think that the real answer is to "play with it, and see what best
suits the application". Ranking the bin might end up being
expensive. I'd probably use qsort(), but I can't remember what its
computational complexity is. Just looked it up. Worst case
is O(N**2), and best-case is O(NlogN). For worst-case, that's rather
brutal at 4M bins (and even worse at my maximum of
16M bins).
This discussion has ended up being much more fascinating than I had
predicted. Keep it up everybody!
--
Marcus Leech
Principal Investigator, Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org
- Re: [Discuss-gnuradio] Correct method for "compressing" a power spectrum, Firas Abbas, 2009/03/09
- Re: [Discuss-gnuradio] Correct method for "compressing" a power spectrum, Jens Elsner, 2009/03/09
- Re: [Discuss-gnuradio] Correct method for "compressing" a power spectrum, Brian Padalino, 2009/03/09
- Re: [Discuss-gnuradio] Correct method for "compressing" a power spectrum, John Ackermann N8UR, 2009/03/09
- Re: [Discuss-gnuradio] Correct method for "compressing" a power spectrum, Bob McGwier, 2009/03/09
- Re: [Discuss-gnuradio] Correct method for "compressing" a power spectrum, Frank Brickle, 2009/03/09
- Re: [Discuss-gnuradio] Correct method for "compressing" a power spectrum,
Marcus D. Leech <=
- Re: [Discuss-gnuradio] Correct method for "compressing" a power spectrum, Bob McGwier, 2009/03/09
- Re: [Discuss-gnuradio] Correct method for "compressing" a power spectrum, Marcus D. Leech, 2009/03/09
- Re: [Discuss-gnuradio] Correct method for "compressing" a power spectrum, Frank Brickle, 2009/03/09
- Re: Re: [Discuss-gnuradio] Correct method for "compressing" a power spectrum, rwmcgwier, 2009/03/10
- Re: Re: [Discuss-gnuradio] Correct method for "compressing" a power spectrum, Frank Brickle, 2009/03/10
- Re: [Discuss-gnuradio] Correct method for "compressing" a power spectrum, John Ackermann N8UR, 2009/03/10
- Re: [Discuss-gnuradio] Correct method for "compressing" a power spectrum, Marcus D. Leech, 2009/03/10
- Re: [Discuss-gnuradio] Correct method for "compressing" a power spectrum, Frank Brickle, 2009/03/10
- Re: [Discuss-gnuradio] Correct method for "compressing" a power spectrum, Marcus D. Leech, 2009/03/10
- Re: [Discuss-gnuradio] Correct method for "compressing" a power spectrum, Frank Brickle, 2009/03/10