[mlpack-git] [mlpack/mlpack] Descriptive Statistics command-line program (#742)

Ryan Curtin notifications at github.com
Mon Aug 1 14:15:49 EDT 2016


> +    double rowMean = arma::mean(row);
> +    double rowStd = arma::stddev(row, population);
> +
> +    // Print statistics of the given dimension.
> +    Log::Info << boost::format(numberFormat)
> +        % dimension
> +        % arma::var(row, population)
> +        % rowMean
> +        % rowStd
> +        % arma::median(row)
> +        % rowMin
> +        % rowMax
> +        % (rowMax - rowMin) // range
> +        % Skewness(row, rowStd, rowMean, population)
> +        % Kurtosis(row, rowStd, rowMean, population)
> +        % StandardError(row, rowStd) << endl;

Everywhere else in the mlpack code we use just regular iostreams instead of boost::format... is it possible to use iostreams and iomanips here?  Like `std::setw`, etc.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/742/files/27ac82e876c3d68637d9e72d28bf0dadbc229ace#r73025667
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160801/dcd97266/attachment.html>


More information about the mlpack-git mailing list