An "IMF" is defined as a function that satisfies the following requirements:
In the whole data set, the number of extrema and the number of zero-crossings must either be equal or differ at most by one.
At any point, the mean value of the envelope defined by the local maxima and the envelope defined by the local minima is zero.