x <- faithful$eruptions
size = length(x)
xt = table(x)
x1 = as.numeric(names(xt))
w1 = as.numeric(xt)
bw.wnrd0(x1, w1)
bw.wnrd0(x1, w1, n=size)
bw.nrd0(x)
bw.wnrd(x1, w1)
bw.wnrd(x1, w1, n=size)
bw.nrd(x)
out = bw.wmise(x)
plot(out, type='l')
y = rnorm(100,34.5, 1.5)
out = bw.wmise(round(y))
plot(out, type='l')
Run the code above in your browser using DataLab