# HG changeset patch # User Sascha L. Teichmann # Date 1558524414 -7200 # Node ID 7d8c41cc50f5b0167e12a6d0ab7df08abf168ab5 # Parent 27aca46771b57919ce027112a478923580a7df2a Added TODO in waterlevel classifcation to find a good starting point. diff -r 27aca46771b5 -r 7d8c41cc50f5 pkg/controllers/bottlenecks.go --- a/pkg/controllers/bottlenecks.go Wed May 22 13:14:55 2019 +0200 +++ b/pkg/controllers/bottlenecks.go Wed May 22 13:26:54 2019 +0200 @@ -145,6 +145,8 @@ classes[i+1] = breaks[i].value } + // TODO: Find a good starting point with binary or interpolation search. + for i := 0; i < len(measurements)-1; i++ { p1 := &measurements[i] p2 := &measurements[i+1]