tests/testthat/test_viterbi.R

context("viterbi")

test_that("Output has the right format",{
    m <- example$m
    expect_equal(length(viterbi(m)),nrow(m$data))
})

Try the moveHMM package in your browser

Any scripts or data that you put into this service are public.

moveHMM documentation built on June 7, 2018, 5:05 p.m.