continuous range to discrete mapping implemented but untested