Text this: Transition length of two stationary random functions in investigation of railway stability