projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
733c2f8
)
move numarray import inside function
author
Paul Brossier
<piem@altern.org>
Sun, 6 Nov 2005 11:34:28 +0000
(11:34 +0000)
committer
Paul Brossier
<piem@altern.org>
Sun, 6 Nov 2005 11:34:28 +0000
(11:34 +0000)
move numarray import inside function
python/aubio/onsetcompare.py
patch
|
blob
|
history
diff --git
a/python/aubio/onsetcompare.py
b/python/aubio/onsetcompare.py
index 5e239426f855e74c64c339e23e1ba5a46dc97fb8..0eb664325ef516b7d30bf02105b7ff0f30f00680 100644
(file)
--- a/
python/aubio/onsetcompare.py
+++ b/
python/aubio/onsetcompare.py
@@
-25,8
+25,6
@@
it somewhat implements the Receiver Operating Statistic (ROC).
see http://en.wikipedia.org/wiki/Receiver_operating_characteristic
"""
-from numarray import *
-
def onset_roc(ltru, lexp, eps):
""" compute differences between two lists
orig = hits + missed + merged
@@
-74,6
+72,7
@@
def onset_diffs(ltru, lexp, eps):
return l
def notes_roc (la, lb, eps):
+ from numarray import *
""" creates a matrix of size len(la)*len(lb) then look for hit and miss
in it within eps tolerance windows """
gdn,fpw,fpg,fpa,fdo,fdp = 0,0,0,0,0,0