Description Usage Arguments Details Value Examples
View source: R/rotate_parameter_space.R
This function is a simple parameter space transformation. Given a function f(x) it returns a new function f_r(x) = f(Rx), where R is a random rotation matrix.
1 |
fn |
A |
If you want repeatable results, make sure you explicitly set a
seed before calling rotate_parameter_space
.
A new soo_function
object where the parameter space
has been randomly rotated.
1 2 3 4 5 | f <- generate_ackley_function(2)
f_r <- rotate_parameter_space(f)
par(mfrow=c(1, 2))
plot(f)
plot(f_r)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.