Description Usage Arguments Details Value Author(s) Examples
Random selection of heights to keep in an AFMImage
.
This function can be used to calculate quickly an approximated variogram of a large image.
1 | sampleAFMImage(AFMImage, percentage)
|
AFMImage |
an |
percentage |
percentage of heights to keep |
sampleAFMImage
returns a sample of the AFMImage to boost calculation time of variogram
a sample of an AFMImage
M.Beauvais
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Not run:
library(AFM)
library(ggplot2)
data(AFMImageOfAluminiumInterface)
anAFMImageSample<-sampleAFMImage(AFMImageOfAluminiumInterface,15)
variogramAnalysis<-AFMImageVariogramAnalysis(sampleFitPercentage=3.43)
avario<-AFM::calculateOmnidirectionalVariogram(AFMImage= anAFMImageSample,
AFMImageVariogramAnalysis= variogramAnalysis)
dist<-gamma<-NULL
p1 <- ggplot(avario, aes(x=dist, y=gamma))
p1 <- p1 + geom_point()
p1 <- p1 + geom_line()
p1 <- p1 + ylab("semivariance")
p1 <- p1 + xlab("distance (nm)")
p1 <- p1 + ggtitle("Approximation of variogram thanks to sampling")
p1
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.