Skip to content

Commit

Permalink
Minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jlmaier12 committed Dec 18, 2024
1 parent 223706f commit 0d11abc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/noPattern.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ noPattern <- function(viralSubset) {
diff1 <- mean(abs(viralSubset[, 2] - pattern1))
diff2 <- mean(abs(viralSubset[, 2] - pattern2))
diff <- ifelse(diff1 < diff2, diff1, diff2)
value <- ifelse(diff1 < diff2, median(viralSubset[, 2]), mean(viralSubset[, 2]))
bestMatchInfo <-
list(
diff,
mean(viralSubset[, 2]),
value,
nrow(viralSubset),
"NA",
1,
Expand Down

0 comments on commit 0d11abc

Please sign in to comment.