random_parameters: Random parameter generation

Description Usage Arguments Details Value Examples

View source: R/random_parameters.R

Description

Generate random parameter(s) for a given function.

Usage

1
2
3

Arguments

n

[integer(1)]
Number of parameters to generate.

fn

[soo_function] Test function.

Details

Given a test function fn, generate n random parameter settings for that function.

Value

For random_parameters, a matrix containing the parameter settings in the columns of the matrix. random_parameter returns a numeric vector with a single parameter setting for the given function.

Examples

1
2
3
4
fn <- generate_ackley_function(10)
X <- random_parameters(100, fn)
str(X)
y <- fn(X)

soobench documentation built on Feb. 9, 2020, 5:08 p.m.