Displaying 2 results from an estimated 2 matches for "orthohedron".
2019 Aug 08
3
Producing different text formats in R
...eplace my C++ code quadscheme.cpp by a R function. The four columns (id,x,y,z) are produced in a matrix or Data Frame and then saved in a file myfile_r.txt using write.table(). For example using the following function:
quadscheme <- function(window, ntile) {
# Creates a grid of points in a 3D orthohedron.
# First point lies at the (mix,miny,miz) corner of the volume and the last one at (maxx,maxy,maxz)
# window: vector. Contains the minimum and maximum values of a 3D orthohedron
# window <- c(minx, maxx, miny, maxy, minz, maxz)
# ntile: vector. Number of points per dimension minus...
2019 Aug 08
0
Producing different text formats in R
...e.cpp by a R function. The four columns (id,x,y,z) are produced in a matrix or Data Frame and then saved in a file myfile_r.txt using write.table(). For example using the following function:
Llu?s> quadscheme <- function(window, ntile) {
Llu?s> # Creates a grid of points in a 3D orthohedron.
Llu?s> # First point lies at the (mix,miny,miz) corner of the volume and the last one at (maxx,maxy,maxz)
Llu?s> # window: vector. Contains the minimum and maximum values of a 3D orthohedron
Llu?s> # window <- c(minx, maxx, miny, maxy, minz, maxz)
Llu?s>...