comparison tests/test-summaries/expected/testplug-curve-vsr-variance.csv @ 235:6a804920b4a8

Toward checking summary values
author Chris Cannam
date Tue, 01 Mar 2016 12:10:40 +0000
parents
children
comparison
equal deleted inserted replaced
234:cee5cab9c85d 235:6a804920b4a8
1 # Sonic Annotator's summary method integrates the values across
2 # time. If an output lacks duration for its features, each feature is
3 # considered to extend until the timestamp of the following feature,
4 # and the final feature is considered to extend until the end of the
5 # input or the last-ending output, whichever is later.
6 #
7 # The curve-vsr output is therefore considered to have 9 values (0.0
8 # to 0.8) that span 0.75 seconds each, followed by one value (0.9)
9 # that spans the 3 seconds from 6.75 to 9.75 where the final output of
10 # the plugin ends (that's the notes-regions output).
11 #
12 # We can consider the last feature the same as four features of 0.75
13 # seconds each (i.e. the same durations as the first 9) each with the
14 # same value, 0.9.
15 #
16 # The mean m is then 7.2 / 13 = 0.553846 approx, and the variance is
17 # the sum for each of the 13 (partly fictitious) values v of (v-m)^2,
18 # divided by 13. This works out as 0.0994083 ish.
19 #
20 0.000000000,9.750000000,variance,0.0994083,"(variance, continuous-time average)"