[mlpack-git] [mlpack/mlpack] Descriptive Statistics command-line program (#742)
Ryan Curtin
notifications at github.com
Wed Aug 3 23:04:27 EDT 2016
> + const string inputFile = CLI::GetParam<string>("input_file");
> + const size_t dimension = static_cast<size_t>(CLI::GetParam<int>("dimension"));
> + const size_t precision = static_cast<size_t>(CLI::GetParam<int>("precision"));
> + const size_t width = static_cast<size_t>(CLI::GetParam<int>("width"));
> + const bool population = CLI::HasParam("population");
> +
> + // Load the data
> + arma::mat data;
> + data::Load(inputFile, data, false, true /*transpose*/);
> +
> + // Generate boost format recipe.
> + const string widthPrecision("%-"+
> + to_string(width)+ "." +
> + to_string(precision));
> + const string widthOnly("%-"+
> + to_string(width)+ ".");
Be sure to follow the style guide---wrapped lines should be indented twice (not once), and try to place spaces between operators (like `a + b` not `a+b`) for readability. :)
---
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#r73456299
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160803/442345b4/attachment.html>
More information about the mlpack-git
mailing list