Mercurial > gemma
changeset 3374:7d8c41cc50f5
Added TODO in waterlevel classifcation to find a good starting point.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 22 May 2019 13:26:54 +0200 |
parents | 27aca46771b5 |
children | e1a75cd15450 |
files | pkg/controllers/bottlenecks.go |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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]