trans_composition function

Transformation for continuous data with a finite number of distinct values