Amplitude block returns instable values

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I am trying to calculate the amplitude of a sine-signal.
In grc the scope shows a instable value jumping between 0 and the real
amplitude.
My code is in the attachment.

regards
Georg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkvexmEACgkQzvyg1ozSprdRVgCcDIa1ldTqQHzyob5yfldwjKGd
Q5wAn1SyA200uJdphTL6dxUcAh5MHsyk
=RDsY
-----END PGP SIGNATURE-----

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs