diff options
author | Jamie Bullock <jamie@postlude.co.uk> | 2010-08-23 11:28:39 +0000 |
---|---|---|
committer | Jamie Bullock <jamie@postlude.co.uk> | 2010-08-23 11:28:39 +0000 |
commit | d128e363fe30da5109d3344232ede924b62606ed (patch) | |
tree | dd89acc3f413b456f660ab8546b918ec1d08c2f2 /examples/simpletest | |
parent | 42b2b09b9146e7fd74233b9529c398fa11dd1ab1 (diff) | |
download | LibXtract-d128e363fe30da5109d3344232ede924b62606ed.tar.gz LibXtract-d128e363fe30da5109d3344232ede924b62606ed.tar.bz2 LibXtract-d128e363fe30da5109d3344232ede924b62606ed.zip |
- Max example tweaks
- corrected output display in simpletest example
Diffstat (limited to 'examples/simpletest')
-rw-r--r-- | examples/simpletest/simpletest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/simpletest/simpletest.c b/examples/simpletest/simpletest.c index b17da16..6a83521 100644 --- a/examples/simpletest/simpletest.c +++ b/examples/simpletest/simpletest.c @@ -37,7 +37,7 @@ int main(void) { xtract_init_fft(N, XTRACT_SPECTRUM); xtract[XTRACT_SPECTRUM]((void *)&vector, N, &argf[0], (void *)&spectrum[0]); - printf("\nThe mean of [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] = %.1f\n\n", mean); + printf("\nThe mean of [.1, .2, .3, .4, -.5, -.4, -.3, -.2, -.1] = %.1f\n\n", mean); printf("\nResults of xtract_spectrum():\n"); for(n = 0; n < N; n++){ |