A stochastic foraging model with predator training effects: I. Functional response, switching, and run lengths.