-
how to understand the below code
hi All,
I am new to q and have some issue in understanding the below code
.quantQ.stats.kendallTauRank:{[xS;yS] //xS,yS -- arrays of values to compare the rank // aggregate concordance statictics stats: sum raze {.quantQ.stats.concordanceRoutine/:[y;(1+x?y)_x]}[t] each t: flip(xS,yS); // return kendall's tau rank :(stats[0]-stats[1])%0.5*count[xS]*count[xS]-1; }
.quantQ.stats.concordanceRoutine return a tuple like 100b, 010b
my understanding is t is like (num1,num2) if so, what is the each right operation doing? in particular the x,y should be numeric value then how should i read the staff inside [y;(1+x?y)_x] based on the drop, it seems like x,y are still vector
Log in to reply.