a controller for a converter is designed to receive from a measuring device measurement signals from an output line of the converter , and to analyze the measurement signals in order to generate a switching signal that has a switching frequency , wherein the controller comprises a sampler for generating a sample signal by sampling received measurement signals . the sampler is designed to perform the sampling at a sampling frequency that is less than three times the switching frequency . a converter comprises a controller in accordance with the invention .