Translated getPopDistancesByKL (#2)
This commit is contained in:
parent
d71bd0567a
commit
c9c310d1fa
3 changed files with 41 additions and 1 deletions
|
|
@ -8,4 +8,11 @@ test_that("Auxiliary functions work properly", {
|
|||
rowsFromInd = 2
|
||||
)
|
||||
expect_equal(findOutRowsFromInd(x, y, "Diploid"), z)
|
||||
expect_equal(
|
||||
getPopDistancesByKL(x2),
|
||||
list(
|
||||
Z = matrix(c(c(1, 101:198), c(2:100), rep(0, 99)), nrow = 99, ncol = 3),
|
||||
distances = as.matrix(rep(0, 4950))
|
||||
)
|
||||
)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue