clancy> Cool, that seems to work.  Is there a derivative block?  Something
clancy> that takes float f(x) and returns float f'(x)?

A filter with taps [1, 0, -1] works "satisfactorily" as a differentiator. Try
this small program.

::Dusting off numerical analysis textbook...::

Indeed, that should work, though you might want to scale it by 1/2 depending on your application. In fact, considering the numeric nature of the calculation, unless you want to interpolate the polynomial and symbolically differentiate, there's not much else you can do. Using taps [1 -1] might give you more resolution, but would probably yield more jitter.

[ t. charles clancy ]--[ [EMAIL PROTECTED] ]--[ www.cs.umd.edu/~clancy ]
[ computer science ]-----[ university of maryland | college park ]


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

Reply via email to