Homec4science

Auto threshold regression: refactor type range checks

Authored by Tom Kazimiers <tom@voodoo-arts.net> on Jan 20 2015, 04:46.

Description

Auto threshold regression: refactor type range checks

As stated in 0bee4e20 the introduced range checks could be improved.
This change makes the code more readable and more DRY by factoring the
clamping into its own function. Two more places could be simplified
additionally.

Details

Committed
Tom Kazimiers <tom@voodoo-arts.net>Jan 20 2015, 13:38
Pushed
oburriMar 8 2018, 18:06
Parents
R6269:7503d311ba3b: Merge pull request #2 from tomka/fix-tests
Branches
Unknown
Tags
Unknown

Event Timeline

Tom Kazimiers <tom@voodoo-arts.net> committed R6269:f9200259a8bf: Auto threshold regression: refactor type range checks (authored by Tom Kazimiers <tom@voodoo-arts.net>).Jan 20 2015, 13:38