Description Usage Arguments Value Examples
Stable matching of points from an infile to a randomized lattice
1 | MatchingInfileToLattice(dimension, linear.system.size, infile, fileout=FALSE, filename="example-matchedpp.dat", verbose=TRUE)
|
dimension |
Dimension d of the simulation box |
linear.system.size |
Linear system size L of the simulation box [0,L)^d |
infile |
Name of 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 (in columns 1 to dimension) and of the lattice (in columns dimension+1 to end). Each row contains one pair of matched points.
1 2 3 4 5 6 | tmp.infile <- "example-ppp.dat"
linear.sys.size <- 4.0
n.pts <- rpois(1,1000.0*linear.sys.size^2)
coords.pois <- matrix(runif(2*n.pts,0,linear.sys.size), nrow = n.pts)
write.table(coords.pois,file=tmp.infile,row.names=FALSE, col.names=FALSE)
out <- MatchingInfileToLattice(dimension=2, linear.sys.size, tmp.infile)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.