Does WordPress’ Pairwise function calculate differently?
i have this function: function pairwiseDifference($arry) { $n = count($arry) - 1; // you can add the -1 here $diff = 0; $result = array(); for ($i = 0; $i < $n; $i++) { // absolute difference between // consecutive…