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

Share:

Description

Generate random parameters for a given function.

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

Usage

1

Arguments

n

Number of parameters to generate.

fn

Test function.

Value

A matrix containing the parameter settings in the columns of the matrix.

Examples

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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.