Generalized Collocation Methods