I'm contemplating a non-electronic system that is analogous to a D flip-flop being fed an analog signal and a fixed-frequency clock. The system has an analog input which changes over time. The output of the system is a single bit. The analog input is sampled at fixed intervals. The output goes high if the input exceeds one value, and goes low if the input deceeds a lower value.
I feel like this circuit has a name or common application, but I can't track down what it might be.