Computation of channel capacity and rate-distortion functions | Synapse