Check that min and max values of "x" surround the center of the peak ("center") Check that these values are not NaN...
Check that min and max values of "x" surround the center of the peak ("center")
Check that these values are not NaN...