A diode clamper adds a DC level to an AC voltage. The capacitor charges to the peak of the supply minus the diode drop. Once charged, the capacitor acts like a battery in series with the input voltage. The AC voltage will “ride” along with the DC voltage. The polarity arrangement of the diode determines whether the DC voltage is negative or positive.
The amplitude of the input is 5V, the output voltage is shifted down about -5V by the negative clamper.