[mlpack-git] master: adhere to the style guide (a5c996d)

gitdub at mlpack.org gitdub at mlpack.org
Sat Aug 6 03:02:26 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/44a2b52f4d9ece563a5b9850db43ab60f71e5ec7...acd81e11579f69e75aa8406b2982328c88cf1fde

>---------------------------------------------------------------

commit a5c996d43552de0b38a8ab4abca0b0739348e600
Author: Keon Kim <kwk236 at gmail.com>
Date:   Sat Aug 6 16:02:19 2016 +0900

    adhere to the style guide


>---------------------------------------------------------------

a5c996d43552de0b38a8ab4abca0b0739348e600
 src/mlpack/methods/preprocess/preprocess_describe_main.cpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/mlpack/methods/preprocess/preprocess_describe_main.cpp b/src/mlpack/methods/preprocess/preprocess_describe_main.cpp
index 2f3cdd9..c4a5f81 100644
--- a/src/mlpack/methods/preprocess/preprocess_describe_main.cpp
+++ b/src/mlpack/methods/preprocess/preprocess_describe_main.cpp
@@ -90,7 +90,7 @@ double Skewness(const arma::rowvec& input,
   else
   {
     // Calculate Sample Skewness
-    skewness = n * M3 / ((n-1) * (n-2) * S3);
+    skewness = n * M3 / ((n - 1) * (n - 2) * S3);
   }
   return skewness;
 }
@@ -121,8 +121,8 @@ double Kurtosis(const arma::rowvec& input,
   {
     // Calculate Sample Excess Kurtosis
     double S4 = pow(fStd, 4);
-    double norm3 = (3 * (n-1) * (n-1)) / ((n-2) * (n-3));
-    double normC = (n * (n+1))/((n-1) * (n-2) * (n-3));
+    double norm3 = (3 * (n - 1) * (n - 1)) / ((n - 2) * (n - 3));
+    double normC = (n * (n + 1)) / ((n - 1) * (n - 2) * (n - 3));
     double normM = M4 / S4;
     kurtosis = normC * normM - norm3;
   }
@@ -158,10 +158,10 @@ int main(int argc, char** argv)
 
   // Generate boost format recipe.
   const string widthPrecision("%-"+
-    to_string(width)+ "." +
-    to_string(precision));
+      to_string(width)+ "." +
+      to_string(precision));
   const string widthOnly("%-"+
-    to_string(width)+ ".");
+      to_string(width)+ ".");
   string stringFormat = "";
   string numberFormat = "";
   for (size_t i = 0; i < 11; ++i)




More information about the mlpack-git mailing list