Open christosvar opened 2 years ago
If valueList has 2*N points, then midpoint will be equal to N, and points N-1 and N should be considered for the average, not N and N+1 (considering zero-based indexing).
valueList
midpoint
If
valueList
has 2*N points, thenmidpoint
will be equal to N, and points N-1 and N should be considered for the average, not N and N+1 (considering zero-based indexing).