Well, a windowed comparator is used when the input signal is noisy. Rather than comparing at a precise reference value, it looks for a window tolerance. It is also called a hystersis comparator. The architecture consists of an internal positive feedback. Some designs also incorporate opamps with positive feedback. The best book for the information is Allen Holberg.