tests/testthat/test-chopthin_rcauchy.R

context("Error message for negative weights.")

test_that("1e3 samples from cauchy",{
    expect_error(chopthin(rcauchy(1e3),N=100,eta=4,normalise=FALSE),"Negative weights not allowed")
})

Try the chopthin package in your browser

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

chopthin documentation built on May 1, 2019, 9:22 p.m.