Description Usage Arguments Value Examples
Stable matching of point patterns from two infiles
1 | MatchingInfileToInfile(linear.system.size, infile.1, infile.2, fileout=FALSE, filename="example-matchedpp.dat", verbose=TRUE)
|
linear.system.size |
Linear system size L of the simulation box [0,L)^d |
infile.1 |
Name of a file that contains a matrix, where each row stores the coordinates of one point |
infile.2 |
Name of another file that contains a matrix, where each row stores the coordinates of one point |
fileout |
Output of matched points to file if set to TRUE (default=FALSE) |
filename |
Name of output file (default="example-matchedpp.dat") |
verbose |
Output of progress if set to TRUE (default=TRUE) |
Matrix that stores all matched points of the point pattern from infile.1 (in columns 1 to dimension) and of the point pattern from infile.2 (in columns dimension+1 to end). Each row contains one pair of matched points.
1 2 3 4 5 6 7 8 9 10 | tmp.bino <- "example-bpp.dat"
tmp.pois <- "example-ppp.dat"
linear.sys.size <- 4.0
n.pts <- 25
coords.bino <- matrix(runif(2*n.pts,0,linear.sys.size), nrow = n.pts)
n.pts <- rpois(1,n.pts)
coords.pois <- matrix(runif(2*n.pts,0,linear.sys.size), nrow = n.pts)
write.table(coords.bino,file=tmp.bino,row.names=FALSE, col.names=FALSE)
write.table(coords.pois,file=tmp.pois,row.names=FALSE, col.names=FALSE)
out <- MatchingInfileToInfile(linear.sys.size, tmp.pois, tmp.bino)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.