[mlpack-git] master: align parameters in describe executable (23c54cb)
gitdub at mlpack.org
gitdub at mlpack.org
Sun Aug 7 22:49:07 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/44a2b52f4d9ece563a5b9850db43ab60f71e5ec7...acd81e11579f69e75aa8406b2982328c88cf1fde
>---------------------------------------------------------------
commit 23c54cba05d4159869566450a37f07524c3606ea
Author: Keon Kim <kwk236 at gmail.com>
Date: Mon Aug 8 11:49:07 2016 +0900
align parameters in describe executable
>---------------------------------------------------------------
23c54cba05d4159869566450a37f07524c3606ea
.../methods/preprocess/preprocess_describe_main.cpp | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/mlpack/methods/preprocess/preprocess_describe_main.cpp b/src/mlpack/methods/preprocess/preprocess_describe_main.cpp
index 32ac9cf..ee59b8f 100644
--- a/src/mlpack/methods/preprocess/preprocess_describe_main.cpp
+++ b/src/mlpack/methods/preprocess/preprocess_describe_main.cpp
@@ -59,8 +59,8 @@ PARAM_FLAG("rowMajor", "If specified, the program will calculate statistics "
* @return sum of nth power deviations.
*/
double SumNthPowerDeviations(const arma::rowvec& input,
- const double& fMean,
- size_t n) // Degree of Power
+ const double& fMean,
+ size_t n)
{
return arma::sum(arma::pow(input - fMean, static_cast<double>(n)));
}
@@ -74,9 +74,9 @@ double SumNthPowerDeviations(const arma::rowvec& input,
* @return Skewness of the given vector.
*/
double Skewness(const arma::rowvec& input,
- const double& fStd,
- const double& fMean,
- const bool population)
+ const double& fStd,
+ const double& fMean,
+ const bool population)
{
double skewness = 0;
const double S3 = pow(fStd, 3);
@@ -104,9 +104,9 @@ double Skewness(const arma::rowvec& input,
* @return Kurtosis of the given vector.
*/
double Kurtosis(const arma::rowvec& input,
- const double& fStd,
- const double& fMean,
- const bool population)
+ const double& fStd,
+ const double& fMean,
+ const bool population)
{
double kurtosis = 0;
const double M4 = SumNthPowerDeviations(input, fMean, 4);
More information about the mlpack-git
mailing list