Rotate the parameter space of a SOO function.
旋转一个SOO函数的参数空间。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function is a simple parameter space transformation. Given a function f(x) it retuns a new function f_r(x) = f(Rx), where R is a random rotation matrix.
这个函数是一个简单的参数空间变换。给定一个函数f(x),它retuns一个新的函数f_r(x) = f(Rx),R是一个随机旋转矩阵。
用法----------Usage----------
rotate_parameter_space(fn)
参数----------Arguments----------
参数:fn
A soo_function object.
Asoo_function对象。
Details
详细信息----------Details----------
If you want repeatable results, make sure you explicitly set a seed before calling rotate_parameter_space.
如果你想重复的结果,确保你明确地设置一个种子,然后再调用rotate_parameter_space。
值----------Value----------
A new soo_function object where the parameter space has been randomly rotated.
一个新的soo_function对象的参数空间被随机旋转。
实例----------Examples----------
f <- ackley_function(2)
f_r <- rotate_parameter_space(f)
par(mfrow=c(1, 2))
plot(f)
plot(f_r)