Consistency of two different approaches to determine the strength of a pairing residual interaction in the rare-earth region