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

Tham notifications at github.com
Fri Jul 29 05:48:37 EDT 2016


> +      double rowStd = arma::stddev(row, population);
> +
> +      // Print statistics of the row i.
> +      Log::Info << boost::format(numberFormat)
> +          % i
> +          % 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;
> +    }

We can reduce some duplicate codes

```
if(CLI::HasParam("dimension")){
    printStatResults(dimension);
}else{
    for(size_t i = 0; i < data.n_rows; ++i){
	    printStatResults(i);
	}
}
```

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


More information about the mlpack-git mailing list