scaleData: Scale numeric data

Description Usage Arguments Value See Also Examples

Description

Scales the input data via a selected logarithmic function.

Usage

1
scaleData(x, scale.="linear")

Arguments

x

an object that inherits from the numeric class, typically a scalar, vector, or matrix.

scale.

a character string defining the type of scaling to perform. Choices are "linear","log2","log10","log" or "db". Default: "linear" (no scaling).

Value

the scaled data is returned with an attribute "scalestr" attached, which defines the scaling treatment used on the input data.

See Also

logb, decibel.

Examples

1
scaleData(c(1,10,100,1000),scale="db")

ifultools documentation built on May 2, 2019, 4:48 p.m.