aboutsummaryrefslogtreecommitdiff
path: root/swig/python
diff options
context:
space:
mode:
Diffstat (limited to 'swig/python')
-rw-r--r--swig/python/test.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/swig/python/test.py b/swig/python/test.py
index 923adb7..e2f0d24 100644
--- a/swig/python/test.py
+++ b/swig/python/test.py
@@ -16,8 +16,16 @@ for i in range(0, len):
a[i] = 2 * i
temp.append(str(a[i]))
-print 'The mean of ' + ', '.join(temp) + ' is: %.2f' % \
- xtract.xtract_mean(a,len,None)[1]
+mean = xtract.xtract_mean(a,len,None)[1]
+
+print 'The mean of ' + ', '.join(temp) + ' is: %.2f' % mean
+
+argv = xtract.floatArray(1)
+argv[0] = mean
+
+variance = xtract.xtract_variance(a, len, argv)[1]
+
+print 'The variance is %.2f' % variance
print 'Computing spectrum...'