tests/testthat/test-FrechForest.R

context("Impurity")

test_that("Impurity works ", {
  expect_equal(length(impurity(list(type="scalar",Y=rnorm(100,0,1),id=c(1:100)))), 1)
})

Try the FrechForest package in your browser

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

FrechForest documentation built on July 1, 2020, 6:44 p.m.