Correct documentation for discretization methods.
Use less then the specified (max) number of intervals, when some would be empty.
Add unit test.