tests/testthat/test_sigmoid.R

library(sigmoid)
x = -5:5
expect_equal(x, sigmoid(sigmoid(x), inverse=TRUE) )
expect_equal(x, sigmoid(sigmoid(x, method='Gompertz'), method='Gompertz', inverse=TRUE) )

Try the sigmoid package in your browser

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

sigmoid documentation built on May 2, 2019, 11:27 a.m.