Is there no module in D for statistics functions such as mean, median, mode, standard deviation, linear least squares, etc. There are codes on Rosetta Code but a) they seem a bit inconsistent in style; and b) theyare not in a module available for use.
Have you tried dstats https://github.com/DlangScience/dstats
