treatment to remove noise and facilitate data analysis in sensing , spectroscopy and other applications