INNER CODE UNIT · C++

mat1s

GreenleafLab/chromVAR · src/pwm_similarity.cpp:41

        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);

    if (i == min_overlap - 1){
      out(1) = (double)i - (double)n2 + 1;
      out(0) = tmp;
    } else if (tmp < out(0)){
      out(1) = (double)i - (double)n2 + 1;
      out(0) = tmp;
    }
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…