Description Usage Arguments Examples
View source: R/lebesgueError.R
Utility function to calculate the Lebesgue error of the symmetric difference between true image boudnary and estimated image boundary in a simulated image.
1 | lebesgueError(fit)
|
fit |
the output of fitBinImage or fitContImage |
1 2 3 4 5 6 7 8 9 10 11 12 13 | set.seed(12345)
gamma.fun = ellipse(a = 0.35, b = 0.25)
norm.obs = parnormobs(m = 100, mu.in = 4, mu.out = 1, sd.in = 1.5, sd.out = 1, design = 'J',
center = c(0.5,0.5), gamma.fun)
## Not run:
norm.samp = fitContImage(norm.obs, NULL,NULL,.4, 1000, 0, 10,"I","I",rep(1,10000), FALSE, FALSE)
par(mfrow = c(1,3))
plotBD(norm.samp, 1)
plotBD(norm.samp, 2)
plotBD(norm.samp, 3)
lebesgueError(norm.samp)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.