Thursday, October 6, 2016

Re: [Discuss-gnuradio] Keep M in N

Hi Steve,

The first M of each N. :) (I don't really understand 100% what "every N/M" would be in general for arbitrary N>=M, integers).

If you dare to venture into the GNU Radio source code (which I'd encourage you to do, it's just that this isn't the most beautiful/interesting block), you'll find that the implementation [1] simply memcopys the first m items of every n-chunk from in- to output.

Best regards,

Marcus

[1] https://github.com/gnuradio/gnuradio/blob/master/gr-blocks/lib/keep_m_in_n_impl.cc#L111

On 06.10.2016 16:22, Steve Gough wrote:
Hi mailing list,

I have a question regarding the Keep M in N block, which keeps M out of every N samples. Is this the first M samples in every N which it retains (or) is it every N/M ?

Thanks!
Steve


_______________________________________________  Discuss-gnuradio mailing list  Discuss-gnuradio@gnu.org  https://lists.gnu.org/mailman/listinfo/discuss-gnuradio  

No comments:

Post a Comment