clamps: Rescale all columns of a matrix

Description Usage Arguments Details Value Examples

Description

Rescale all columns of a matrix

Usage

1
2
3
4
5
6
7
clamp(.data)

clamp_robust(.data)

clamp_sd(.data, sd = 1)

clamp_standardize(.data, sd = 1)

Arguments

.data

A numeric matrix

sd

the value of each columns standard deviation (default is 1)

Details

These functions are used internally by the tour to rescale all columns of .data.

Value

A matrix with the same dimension as .data where each column has been rescaled.

Examples

1
2
3
4
5
6
7
8
9
mv <- matrix(rnorm(30), ncol = 3)

clamp(mv)

clamp_robust(mv)

clamp_sd(mv)

clamp_standardize(mv)

liminal documentation built on May 28, 2021, 9:06 a.m.