This document discusses approaches to calculating the electromagnetic field excited by an electron beam in microwave vacuum devices. It analyzes the equations of discrete interaction between an electron beam and the electromagnetic field of periodic and pseudoperiodic slow-wave structures (SWSs). The analysis is based on the difference theory of excitation of SWSs and allows for a unified description of interaction in both the passbands and rejection bands of the structures. Comparison of electron bunching processes in the linear field of a periodic SWS versus a pseudoperiodic SWS confirms the selective properties of pseudoperiodic SWSs.