added signal-to-noise function to stats

I added a signal to noise function, called SNR, to stats. This is also my first pull request so I apologize in advance as I probably screwed something up.