Expanded and improved version of StatSample of SciRuby