tests/testthat/test_curve.R

library(uwot)
context("Curve Parameters")

expect_equal(as.vector(find_ab_params(spread = 1, min_dist = 0.001)),
  c(1.929, 0.792),
  tol = 1e-3
)

expect_equal(as.vector(find_ab_params(spread = 1, min_dist = 0.1)),
  c(1.577, 0.895),
  tol = 1e-3
)

Try the uwot package in your browser

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

uwot documentation built on June 22, 2024, 6:58 p.m.