createNoise: Create a noise

Description Usage Arguments Details Value Note Author(s) References Examples

Description

This function is used to create a noise with 5-modal mixture normal distribution

Usage

1
createNoise(n, mean = rep(NA, 5), sd = rep(1, length(mean)), prob = rep(1, length(mean))/length(mean))

Arguments

n

the size of noise

mean

the size of noise

sd

a vector of the standard error of the 5-modal noise

prob

a vector of the propotion of the sample from the 5-modal distribution

Details

no detalis required

Value

a real vector

Note

no further notes

Author(s)

Mark and Yan-Xia

References

no references

Examples

1
2
3
4
5
6
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

y<-rnorm(100)
noise<- createNoise(length(y))

ElsevierSoftwareX/SOFTX-D-15-00040 documentation built on May 6, 2019, 3:25 p.m.