3.3 Exponential decay function
Exponential decay functions describe an exponential decay in weights over time. The decayed weight sequence is denoted Wei.
wej=bj-1-k’/s
s=sum(bj-1-k’)
Where Wei represents the weight sequence of Rg[-(k’+1)]i+1, b is the base number, and wej is the j-th element of Wei.
The alarm intensity wni is obtained by summing the element-wise products of the weight sequence Wei and the anomaly score sequence Rg[-(k’+1)]i+1.
wni=sum(Wei** Rg[-(k’+1)]i+1)
SPL routine:
A | B | C | |
---|---|---|---|
1 | [0.1,0.2,0,0,0.5,0.3] | /Anomaly score sequence | |
2 | 5 | /k’ | |
3 | 10 | /Base nymber b | |
4 | =A1.(power(A3,#-1-A2)) | ||
5 | =s=A4.sum(),A4.(~/s) | /Weight wej | |
6 | =sum(A1**A5) | /Alarm intensity |
Cell A3 is the base number b, which can be set as required.
Cell A5 represents the exponential decay process;
Cell A6 calculates the weights wej.
SPL Official Website 👉 https://www.esproc.com
SPL Feedback and Help 👉 https://www.reddit.com/r/esProcSPL
SPL Learning Material 👉 https://c.esproc.com
SPL Source Code and Package 👉 https://github.com/SPLWare/esProc
Discord 👉 https://discord.gg/sxd59A8F2W
Youtube 👉 https://www.youtube.com/@esProc_SPL