Re: [Discuss-gnuradio] Dealing with `divide 0` or `Inf` in GNU Radio C++ code.

2015-08-20 Thread Ludwig Stephan (CR/AEH4)
[mailto:discuss-gnuradio-bounces+stephan.ludwig2=de.bosch@gnu.org] Im Auftrag von Jeff Long Gesendet: Mittwoch, 19. August 2015 13:31 An: discuss-gnuradio@gnu.org Betreff: Re: [Discuss-gnuradio] Dealing with `divide 0` or `Inf` in GNU Radio C++ code. (That should be "moving averages"

Re: [Discuss-gnuradio] Dealing with `divide 0` or `Inf` in GNU Radio C++ code.

2015-08-19 Thread Jeff Long
(That should be "moving averages", not "correlators"). Also, subtracting instead of dividing might do what you want. Jeff On 08/19/2015 07:25 AM, Jeff Long wrote: Jeon, You can add an appropriate constant before the divide and compensate for it afterward. The exact math will depend on the val

Re: [Discuss-gnuradio] Dealing with `divide 0` or `Inf` in GNU Radio C++ code.

2015-08-19 Thread Jeff Long
Jeon, You can add an appropriate constant before the divide and compensate for it afterward. The exact math will depend on the values coming out of the correlators. Jeff On 08/19/2015 06:50 AM, Jeon wrote: Let's think about the following auto/cross correlator: http://i.imgur.com/Fy5hdVj.png