INNER CODE UNIT · C++

mat2s

GreenleafLab/chromVAR · src/pwm_similarity.cpp:33

        mat2s = mat2.cols(n2 - 1 - i, n2 - 1);
      } else{
        mat1s = mat1.cols(0,  n1 - 1);
        mat2s = mat2.cols(n2 - 1 - i, m - i - 1);
      }

    } else{
      if (i < n1){
        mat1s = mat1.cols(i - n2 + 1, i);
        mat2s = mat2.cols(0, n2 - 1);
      } else{
        mat1s = mat1.cols(i - n2 + 1, n1 -1);
        mat2s = mat2.cols(0, m - i - 1);
      }
    }

    tmp = pwm_euclidean(mat1s,mat2s);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…