Description Usage Arguments Details Value Examples
View source: R/random_parameters.R
Generate random parameter(s) for a given function.
1 2 3 | random_parameters(n, fn)
random_parameter(fn)
|
n |
[ |
fn |
[ |
Given a test function fn
, generate n
random
parameter settings for that function.
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.
1 2 3 4 | fn <- generate_ackley_function(10)
X <- random_parameters(100, fn)
str(X)
y <- fn(X)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.