Classical and quantum analysis of one-dimensional velocity selection for ultracold atoms