eeveetza / Py1812

Python Implementation of Recommendation ITU-R P.1812
GNU General Public License v3.0
7 stars 1 forks source link

bug in path_fraction() and longest_cont_dist() #1

Closed eeveetza closed 2 years ago

eeveetza commented 2 years ago

Similar to issue https://github.com/eeveetza/p1812/issues/9, the following needs to be corrected in path_fraction() and in longest_cont_dist():

        if ( d[start[i]] > 0 ) :
            delta = delta + ( d[start[i]]-d[start[i]-1] )/2.0

instead of

        if ( d[start[i]] > 0 ) :
            delta = delta + ( d[stop[i]]-d[stop[i]-1] )/2.0