EmpCDF: Standardizing a matrix to be between 0 and 1 using the...

Description Usage Arguments Value Examples

View source: R/distance_functions.R

Description

Takes in a matrix and returns a matrix of the same dimension with entries equal to the corresponding empirical cdf value.

Usage

1
EmpCDF(x)

Arguments

x

Matrix to be standardized.

Value

A matrix of the same dimensions as the one given.

Examples

1
2
3
4
5
set.seed(1)
D <- matrix(rexp(800, rate = 0.5), 20, 40)
Dnew <- EmpCDF(D)
hist(D)
hist(Dnew)

gpapadog/DAPSm documentation built on May 17, 2019, 8 a.m.