seSymbolicFunction: Symbolic squared error function (SE)

Description Usage Arguments Value

View source: R/fitness.r

Description

Given two functions f and g, returns a function whose body is the symbolic representation of the squared error between f and g, i.e. function(x) (f(x) - g(x))^2.

Usage

1

Arguments

f

An R function.

g

An R function with the same formal arguments as f.

Value

A function representing the squared error between f and g.


rgp documentation built on May 30, 2017, 12:45 a.m.