rotate_parameter_space: Rotate the parameter space of a SOO function.

Description Usage Arguments Details Value Examples

View source: R/rotate_parameter_space.R

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.

Usage

1

Arguments

fn

A soo_function object.

Details

If you want repeatable results, make sure you explicitly set a seed before calling rotate_parameter_space.

Value

A new soo_function object where the parameter space has been randomly rotated.

Examples

1
2
3
4
5
f <- ackley_function(2)
f_r <- rotate_parameter_space(f)
par(mfrow=c(1, 2))
plot(f)
plot(f_r)


soobench documentation built on May 19, 2017, 10:11 p.m.
Search within the soobench package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.