 Often, some amount of hysteresis is intentionally added to an electronic circuit to prevent unwanted rapid switching.This and similar techniques are used to compensate for contact bounce in switches, or noise in an electrical signal.A Schmitt trigger is a simple electronic circuit that exhibits this property.