Changeset 0cd995a


Ignore:
Timestamp:
Feb 17, 2006, 4:59:22 PM (19 years ago)
Author:
Paul Brossier <piem@altern.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
dbc0351
Parents:
4045ba4
Message:

change rocloc to return list and abs list of differences
change rocloc to return list and abs list of differences

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/aubio/onsetcompare.py

    r4045ba4 r0cd995a  
    8080    orig, expc = len(ltru), len(lexp)
    8181    l = []
     82    labs = []
    8283    mean = 0
    8384    # if lexp is empty
     
    9899                correspond += 1
    99100                l.append(y-x)
     101                labs.append(abs(y-x))
    100102        if correspond == 0:        bad += 1
    101103        elif correspond > 1:       merged += correspond - 1
    102104    # check consistancy of the results
    103105    assert ( orig - missed - merged == expc - bad - doubled)
    104     return orig, missed, merged, expc, bad, doubled, l, sum(l)/float(max(len(l),1))
     106    return orig, missed, merged, expc, bad, doubled, l, labs
    105107
    106108def notes_roc (la, lb, eps):
Note: See TracChangeset for help on using the changeset viewer.