A practicle implementation of signal probablity analysis from chapter 2 of "The Scientist and Engineer's Guide to Digital Signal Processing" by Steven W. Smith, Ph.D.
This is purely done for my understanding and is not intended to be used in production.