to.uniform: Transform data to uniform distribution

Description Usage Arguments Details Value Author(s) Examples

Description

Transform data to uniform distribution. Optionally, a set of values can be transformed against a reference set of data.

Usage

1
to.uniform(ref, val = NA)

Arguments

ref

Set of values that determince the transformation

val

Values to be transformed

Details

If values is NA, the reference set itself will be transformed.

Value

Vector with transformed values.

Author(s)

Dominik Reusser

Examples

1
2
3
4
5
   a <- rnorm(100)
   hist(a)
   b <- to.uniform(a)
   hist(b)
   c <- to.uniform(ref=a, val=c(-0.5,0,0.5))

Example output

Loading required package: e1071
Loading required package: hexbin
Loading required package: qualV
Loading required package: KernSmooth
KernSmooth 2.23 loaded
Copyright M. P. Wand 1997-2009
Loading required package: klaR
Loading required package: MASS
Loading required package: som

tiger documentation built on May 2, 2019, 2:22 a.m.