doc for stabilisation cython function