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

Keon Kim notifications at github.com
Sat Aug 6 03:02:53 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)+ ".");

updated

---
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#r73782100
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160806/786bf6dd/attachment.html>


More information about the mlpack-git mailing list