remap: Remap to [-1,1]

Description Usage Arguments Value

View source: R/utils.R

Description

Remap observations on an arbitrary interval [a,b] to [-1,1].

Usage

1
remap(x, limits)

Arguments

x

The observations to be remapped.

limits

The current boundaries of the set containing the observations (a numeric vector).

Value

A vector of remapped observations.


dfcorbin/MABsim documentation built on April 26, 2020, 8:26 a.m.