Sets of Admissible Functions for the Rayleigh-Ritz Method