Description Usage Arguments See Also Examples
View source: R/counting_function.R
Return a new function which is identical to the soo_function
passed in except that all function evaluations are counted.
1 |
fn |
[ |
number_of_evaluations
,
reset_evaluation_counter
1 2 3 4 5 6 7 8 9 10 11 | f <- counting_function(generate_double_sum_function(5))
number_of_evaluations(f)
y <- f(random_parameters(1, f))
number_of_evaluations(f)
reset_evaluation_counter(f)
number_of_evaluations(f)
y <- f(random_parameters(21, f))
number_of_evaluations(f)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.