seSymbolic: Symbolic squared error (SE)

Description Usage Arguments Value

View source: R/fitness.r

Description

Given to functions f and g, returns the area the squared differences between f and g in the integration limits lower and upper.

Usage

1
seSymbolic(f, g, lower, upper, subdivisions = 100)

Arguments

f

An R function.

g

An R function with the same formal arguments as f.

lower

The lower limit of integraion.

upper

The upper limit of integraion.

subdivisions

The maximum number of subintervals for numeric integration.

Value

The area of the squared differences between f and g, or Inf if integration is not possible in the limits given.


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