discretize

fun discretize(value: Int, bucket: Int): Int