Characterization of bound states and scattering states in quantum mechanics