Introduction - If you have any usage issues, please Google them yourself
The code is a classic signal to noise ratio estimation algorithm, using the statistical moment estimation based on the idea of the use of 2,4-order moment of signals to estimate the received signal to noise ratio