tests/testthat/test_acc.R

test_that("`acc()` works", {
    p   = 8    # p is the scales number
    n   = 200  # n is the amino acid number
    lag = 7    # the lag paramter
    mat = matrix(rnorm(p * n), nrow = p, ncol = n)

    expect_equal(length(acc(mat, lag)), 448L)
})
road2stat/Rcpi documentation built on April 30, 2024, 6:44 a.m.