From e32887d30071d6e8a9bb2377bd1eb792ce7dc7a4 Mon Sep 17 00:00:00 2001 From: antikvist Date: Fri, 19 Jun 2020 06:21:48 +0300 Subject: [PATCH] rank corr (cherry picked from commit 2815397a19a3149785f5a3dce7ef7e2e6b875708) (cherry picked from commit d244797defb4ec3fcab7626e01ea42396703979b) --- src/AggregateFunctions/AggregateFunctionRankCorr.cpp | 1 - src/AggregateFunctions/AggregateFunctionRankCorr.h | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/AggregateFunctions/AggregateFunctionRankCorr.cpp b/src/AggregateFunctions/AggregateFunctionRankCorr.cpp index 25ba9d55999..bd483ad5037 100644 --- a/src/AggregateFunctions/AggregateFunctionRankCorr.cpp +++ b/src/AggregateFunctions/AggregateFunctionRankCorr.cpp @@ -3,7 +3,6 @@ #include #include "registerAggregateFunctions.h" -#include #include diff --git a/src/AggregateFunctions/AggregateFunctionRankCorr.h b/src/AggregateFunctions/AggregateFunctionRankCorr.h index 1f8b69e5ff5..c01f66a8b71 100644 --- a/src/AggregateFunctions/AggregateFunctionRankCorr.h +++ b/src/AggregateFunctions/AggregateFunctionRankCorr.h @@ -185,7 +185,7 @@ public: //sort x_values std::sort(std::begin(tmp_values), std::end(tmp_values), ComparePairFirst{}); - for (size_t j = 0; j < size; ) + for (size_t j = 0; j < size;) { //replace x_values with their ranks size_t rank = j + 1; @@ -222,7 +222,7 @@ public: std::sort(std::begin(tmp_values), std::end(tmp_values), ComparePairSecond{}); //replace y_values with their ranks - for (size_t j = 0; j < size; ) + for (size_t j = 0; j < size;) { //replace x_values with their ranks size_t rank = j + 1;