tests/testthat/test_drr.R

test_that("drr forward and backward passes", {
    spiral <- loadDataSet("Helix", n = 200)

    drr_spiral <- embed(spiral, "DRR", ndim = 3, .mute = c("message", "output"))

    expect_equal(3, getNDim(drr_spiral))
    dsa <- drr_spiral@apply(spiral)
    dsi <- drr_spiral@inverse(dsa)

    expect_equal(dsi, spiral)
})

Try the dimRed package in your browser

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

dimRed documentation built on July 11, 2022, 5:06 p.m.