scaleX: Scale a matrix to the unit hypercube

Description Usage Arguments Details Value Author(s) Examples

Description

Scales a matrix to

[0, 1]^d

Usage

1
scaleX(x)

Arguments

x

An n x d matrix

Details

This function scales a matrix to the unit hypercube by subtracting off the minimum value in each column from each value and dividing by the range of that column.

Value

A matrix rescaled to

[0, 1]^d

with attributes "scaled:minimum" and "scaled:range"

Author(s)

Casey Davis (cbdavis33@gmail.com)

Examples

1
scaleX(matrix(runif(20, 0, 10), nrow = 10, ncol = 2))

cbdAmgen/bcgp0a documentation built on May 17, 2019, 10:01 a.m.