Minimizing the effects of distortion and noise in fiber-optic communications and interferometric imaging through digital signal processing