Description: The resolution was increased (coarser) and the histogram values returned to their old state. Also, the number of knot-point was increased.
Result: The horrible results seen before are gone, maybe because of the change in resolution. More experimentation is needed.