Skip to content

Commit 88b6cc1

Browse files
committed
fix linting
1 parent eb28794 commit 88b6cc1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bin/compare_performance.r

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ get_stats_abundance <- function(expected_abund,observed_abund,df,sample) {
102102
y <- y / sum(y) # normalize
103103
sum(x * log(x / y))
104104
}
105-
105+
106106
# Midpoint distribution
107107
m <- (p + q) / 2
108-
108+
109109
# Jensen-Shannon is the square root of the average of two KL divergences
110110
sqrt(0.5 * kl_div(p, m) + 0.5 * kl_div(q, m))
111111
}

0 commit comments

Comments
 (0)