Refactoring
This commit is contained in:
parent
c975a7c820
commit
67170d1c7b
3 changed files with 5 additions and 4 deletions
|
|
@ -4,7 +4,7 @@ computeDiffInCounts <- function(rows, max_noalle, nloci, data) {
|
|||
# % riveill<6C> rows. rows pit<69><74> olla vaakavektori.
|
||||
|
||||
diffInCounts <- zeros(max_noalle, nloci)
|
||||
for (i in seq_len(nrow(data)) ) {
|
||||
for (i in seq_len(nrow(data))) {
|
||||
row <- data[i, ]
|
||||
notEmpty <- as.matrix(find(row>=0))
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ computePopulationLogml <- function(pops, adjprior, priorTerm) {
|
|||
# Computation #
|
||||
# ======================================================== #
|
||||
isarray <- length(dim(repmat(adjprior, c(1, 1, length(pops))))) > 2
|
||||
# FIXME: 3rd dimension of COUNTS getting dropped
|
||||
term1 <- squeeze(
|
||||
sum(
|
||||
sum(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue