conNormalizer: Normalizing a target data array to a basis array based on...

Description Usage Arguments Details Value Author(s) Examples

Description

Normalizing a target data array to a basis array based on their distributions

Usage

1

Arguments

tg

a target data array

bs

a basis data array

Details

The function maps a target data array to a basis array based on their distributions and the basis data array can be an arbitary data array or a standard distribution such as normal distribution.

Value

A normalized target data array with the same distribution with the basis data array

Author(s)

Qinxue Meng, Paul Kennedy

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# Normalize DArray1 to DArray3
# load build-in data arrays 
data(DArray1) 
data(DArray3) 

# Capturing distribution information 
DBdata1 <- genDistData(DArray1, 500)
DBdata3 <- genDistData(DArray3, 500)

# Using Gaussian function to fit DBdata3
DBdata3 <- gaussianFit(DBdata3)

# Normalize DBdata1 to the Gaussian fitting function of DBdata3
DArray1 = conNormalizer(DArray1, DArray3)
DA1toDA3DBdata <- genDistData(DA1toDA3, 500)
visDistData(DA1toDA3DBdata, "P", "DA1toDA3", "Range", "Probability")

mengqinxue/DBNorm documentation built on May 22, 2019, 6:50 p.m.