is important to note that while in State0, in temp_s0 we store the last stable temperature value; that is, the value before the machine moved from State0.If the machine is in State1, we calculate the ratio of the average of the values of the It sliding window of size WH and the most recent value of the relative humidity. If this ratio is less than th_threshold, the machine moves to State3; otherwise, it goes back to State0. While the machine is in State3, the ratios are still computed, and if they are greater (or smaller, in the case of humidity) than their respective thresholds (i.e., the temperature is still increasing while the relative humidity is decreasing), the machine moves to State5 and an alarm is triggered, indicating the probable occurrence of a night fire
đang được dịch, vui lòng đợi..