detection of non concave and non increasing spectra