powered by
Defines custom mathematical operators for use in symbolic search.
define_custom_operators(...)
List of operator definitions suitable for symbolic_search.
Named functions to add as operators.
# \donttest{ ops <- define_custom_operators( logistic = function(x, k = 1, x0 = 0) 1 / (1 + exp(-k * (x - x0))), threshold = function(x, c) ifelse(x > c, 1, 0) ) # }
Run the code above in your browser using DataLab