Learn R Programming

ecr (version 1.0)

rescalePoints: Rescaling of points.

Description

Rescales a cloud of points so that all the point are located within the bounds given by lower and upper. If both parameters are missing the minimal/maximal values per dimension are extracted.

Usage

rescalePoints(x, lower = NULL, upper = NULL)

Arguments

x
[matrix] Matrix of points.
lower
[numeric(1)] Lower bound of the new bounding box.
upper
[numeric(1)] Upper bound of the new bounding box.

Value

[matrix]