reScaleToRange-function: A function to rescale a certain (x,y) matrix pair into a new...

Description Usage Arguments Value

Description

A function to rescale a certain (x,y) matrix pair into a new (x_new, y) pair.

Usage

1
rescaleToRange(new_xs, old_xs, y)

Arguments

new_xs

Numeric vector. The new x labels that we want to rescale to

old_xs

Numeric vector. The x labels of the previous matrix

y

Numeric vector. The original y values corresponding to old_xs

Value

Numeric vector corresponding to the y's rescaled to fit the x_new vector


julianstanley/SensorOverlord documentation built on Oct. 19, 2020, 2:29 p.m.