tests/testthat/test-trafos.R

#
#
#

set.seed(123)

sample <- matrix(evd::rfrechet(2000), 1000, 2)
sample[,1] <- 2 * sample[,1] - 5
t1 <- transform_unitfrechet(sample)

t1_retrafo <- transform_orig_margins(t1, sample)


test_that(
          "Testing trafos basic properties",
          {
            expect_gte(t1[1,1], 0)
})

Try the maxstablePCA package in your browser

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

maxstablePCA documentation built on Sept. 11, 2024, 8:22 p.m.