rank corr

(cherry picked from commit 2815397a19)
(cherry picked from commit d244797def)
This commit is contained in:
antikvist 2020-06-19 06:21:48 +03:00 committed by Nikita Mikhaylov
parent 950094c233
commit e32887d300
2 changed files with 2 additions and 3 deletions

View File

@ -3,7 +3,6 @@
#include <AggregateFunctions/FactoryHelpers.h>
#include "registerAggregateFunctions.h"
#include <AggregateFunctions/Helpers.h>
#include <DataTypes/DataTypeAggregateFunction.h>

View File

@ -185,7 +185,7 @@ public:
//sort x_values
std::sort(std::begin(tmp_values), std::end(tmp_values), ComparePairFirst<std::greater>{});
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<std::greater>{});
//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;