domain_to_unit: Change a function's inputs to live in [-1, 1]

View source: R/misc.R

domain_to_unitR Documentation

Change a function's inputs to live in [-1, 1]

Description

Given an m dimensional function whose inputs live in bounded intervals [a1, b1], ..., [am, bm], return a wrapped version of the function whose inputs live in [-1, 1], ..., [-1, 1].

Usage

domain_to_unit(f, domain)

Arguments

f

The function to wrap, should have a single vector-valued input.

domain

A list of real tuples, indicating the original domain of the function.

Value

A function wrapping f.


activegp documentation built on June 28, 2022, 1:05 a.m.