Learn R Programming

EmpiricalDynamics (version 0.1.2)

define_custom_operators: Define Custom Operators

Description

Defines custom mathematical operators for use in symbolic search.

Usage

define_custom_operators(...)

Value

List of operator definitions suitable for symbolic_search.

Arguments

...

Named functions to add as operators.

Examples

Run this code
# \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