Description Usage Arguments Details Value Author(s) Examples
Normalizing a target data array to a basis array based on their distributions
1 | conNormalizer(tg, bs)
|
tg |
a target data array |
bs |
a basis data array |
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.
A normalized target data array with the same distribution with the basis data array
Qinxue Meng, Paul Kennedy
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.