Description Usage Arguments Examples
Changes a single digit of a single parameter fit
1 2 3 | change_digit(fit, which = "random")
sp_difference(original_fit, new_fit)
|
fit, original_fit, new_fit |
fit objects returned by [sp_fit()] |
which |
which decimal digit to change. |
1 2 3 4 5 6 7 8 9 10 11 12 13 | x <- rnorm(100)
fit <- sp_fit(x, binary_precision = 12)
# Randomly change the 30th decimal
new_fit <- change_digit(fit, 30)
# visualise the change (numbers in red)
sp_difference(fit, new_fit)
# visualise the impact on "predictions".
plot(x)
points(predict(fit), col = "red")
points(predict(new_fit), col = "blue")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.