Made a start on porting stats from PDA! #31

* I have very quickly tested all the functions in this commit and they
  seem to work but I certainly need to do more testing!
* And doc strings need more work.
* And I need to think about accepting a DataFrame, converting into a
  Series if the df contains only a single column; else doing something
  smart with the multiple channels (or raising an exception)