get.directions {RGeostats} | R Documentation |
Generate directions for the variogram calculation
get.directions(dirvect=NA, ndim=2)
dirvect |
This argument gives the set of directions provided by the user. |
ndim |
Space dimension |
If 'dirvect' is not defined, a single direction is generated oriented parallel to the first space dimension.
If 'dirvect' is provided as a matrix, its first dimension gives the space dimension, the second argument then gives the number of directions.
If 'dirvect' is provided as a vector: the length of the vector gives the number of directions. The elements of the vector are the rotation angles in the XoY plane of the different direction (in degrees, according to trigonometric system).
The matrix which gives the set of directions. Its first dimension corresponds to the space dimension, its second dimension to the number of directions. Each direction is defined by its normalized vector.
# Specifying the (default) direction OX in the (default) 2-D space get.directions() # Specifying the (default) direction OX in the 3-D space get.directions(ndim=3) # Specifying the vertical direction in a 3-D space as a matrix get.directions(matrix(c(0,0,1))) # Specifying OX and OY directions in a 3-D space get.directions(c(0,90),ndim=3) # Specifying the 3 main directions in 3-D as a matrix get.directions(diag(3))