Threshold Based Encoding Definition