Derivative at position of local extreme values