Transform a probability distribution.