Theoretical study and optimisation of a standard deviation estimator circuit for adaptive threshold spike detection. (26th January 2016)