Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does hysteresis mean and how does it apply to computer science or programming?

I was looking at some code and saw an out of context comment about 'hysteresis.' I think I have figured out what the code does so my question doesn't involve anything specific. I simply do not understand what the term means or how it is applicable in programming. I looked around and saw some mathmatic definitions but would like some more information. From what I can tell Hysteresis has something to do with predicting or assuming a given state for X based on what has happened to X in the past?

like image 751
Bjorn Avatar asked Mar 18 '11 21:03

Bjorn


People also ask

What is hysteresis used for?

Hysteresis is important for producing stable switching behavior in a comparator circuit. This hysteresis is added by including a positive feedback loop between the output and one of the inputs, which then defines the threshold for switching as the input signal rises and falls.

What is hysteresis in engineering?

(hɪstərisɪs) noun. (Electrical engineering: Circuits, Electrical power) Hysteresis is something that happens with magnetic materials so that, if a varying magnetizing signal is applied, the resulting magnetism that is created follows the applied signal, but with a delay.

What is hysteresis in control systems?

In control systems, hysteresis can be used to filter signals so that the output reacts less rapidly than it otherwise would by taking recent system history into account.

What is hysteresis example?

A common example of hysteresis is the delayed effects of unemployment, whereby the unemployment rate can continue to rise even after the economy has begun recovering. The current unemployment rate is a percentage of the number of people in an economy who are looking for work but can't find any.


2 Answers

Hysteresis characterizes a system whose behavior (output) does not only depend on its input at time t, but also on its past behavior, on the path it has followed.

A well-known device that exhibits hysteresis is a thermostat. Imagine a thermostat that would switch on and off heating at 70°F. When temperature is around 70°F, while fluctuating a bit, the thermostat would continually switch heating on and off. Generally, a thermostat is built with hysteresis: it will switch on heating at (say) 69°F, but switch off heating at 71°F. This avoids the continual switches.

EDIT: have a look at Wikipedia's article.

like image 178
ChrisJ Avatar answered Oct 12 '22 22:10

ChrisJ


Thermostat example:

heatPointLow = 8°C
heatPointHeight = 10°C
heater = off

while(true){
    if(temperature < heatPointLow)
        heater = on
    if(temperature > heatPointHeight)   
        heater = off
}

If there where just one point the system coul'd oscillate around that single point. Between the points height and low it depends on the last value of the heater if it is on or off.

like image 38
moritz Avatar answered Oct 12 '22 23:10

moritz