Abstract: A method and apparatus for controlling the decision threshold and the sampling instant of a data regenerator wherein the data regenerator includes a second data path whose decision threshold can be shifted. By comparing the output data, it is possible to calculate the bit errors which are caused by a shifting of the decision threshold. By experimentally shifting the sampling instant and subsequently the decision threshold the optimal sampling instant and the optimal decision threshold are found.