maximize_function: maximize_function

Description Usage Arguments Value Examples

Description

A friendly wrapper to find a function's max.

Usage

1
2
maximize_function(f = NULL, search_range_start = NULL,
  search_range_end = NULL, tolerance = NULL, verbosity = NULL, ...)

Arguments

f

a function accepting a single parameter.

search_range_start

the minimal value of the range where the mode will be searched

search_range_end

the maximal value of the range where the mode will be searched

verbosity

0: no output (default), >0: more output

Value

the guessed parameter value that maximizes the function output

Examples

1
maximize_function(f = function(x) { return(1 / (x - 17)) }, search_range_start = -100, search_range_end = 100, verbosity = 1)

daviddoret/GRCRToolkit documentation built on May 23, 2019, 7:31 a.m.