[mlpack-git] [mlpack/mlpack] Descriptive Statistics command-line program (#742)
Tham
notifications at github.com
Fri Jul 29 04:22:42 EDT 2016
> +/**
> + * Calculates Skewness of the given vector.
> + *
> + * @param input Vector that captures a dimension of a dataset
> + * @param rowStd Standard Deviation of the given vector.
> + * @param rowMean Mean of the given vector.
> + * @return Skewness of the given vector.
> + */
> +double Skewness(const arma::rowvec& input,
> + const double& rowStd,
> + const double& rowMean,
> + const bool population)
> +{
> + double skewness = 0;
> + double S3 = pow(rowStd, 3);
> + double M3 = SumNthPowerDeviations(input, rowMean, 3);
I guess M3 mean moment 3?If so, I think write it as
`M3/n` maybe can express your intention better
---
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#r72756960
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160729/fd48cd90/attachment.html>
More information about the mlpack-git
mailing list