And if you had bleed air from a relatively large turbofan stage on every railroad car, and presumably reduced pressure outside, you could arrange aircraft-like cabin-air exchange comparably.
Without specific knowledge of mass flow and pressures, something the little blue arrows don’t indicate, we have little idea of how much cabin air goes through those HEPA filters (and, in turn, what their size, throughput, and cost would be).