createNoise: Create a noise

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

Description

This function is used to create a 5-modal noise

Usage

1
2
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

a vector of the positions of the 5-modal distribution

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 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))

MaskJointDensity documentation built on May 2, 2019, 8:28 a.m.