generate a spatially correlated data set
a supported variogram model
(optional) the (approximate) number of points generated. The default value is 30.
(optional) keyword option of the form grid=truefalse or dimension=d. If grid is set to true, the generated data points will be equally spaced along each dimension (default: false). The dimension option sets the dimension of the points to be generated (default: 2).
The GenerateSpatialData command takes a variogram and generates a set of points and associated data reflective of that variogram model. These points and data can then be used to experiment with, or demonstrate, Kriging interpolation.
If the grid=true option is given, then the points are located in a square d-dimensional grid, at coordinates equally spaced between 0 and 1. As a consequence, there will be kd points in total, for some k. Maple chooses k as n1d; consequently, the number of points generated may be smaller than n. For example, if d has its default value of 2, then the number of points will be reduced to the largest perfect square that is not greater than n.
If the grid=true option is not given, then the points are uniformly randomly selected from the d-dimensional unit cube. In this case, exactly n points are generated.
The data set is returned as an expression sequence of a list of lists representing the points, and a Vector of values at those points.
We generate some points in two dimensions and associated data.
points1,data1 ≔ Interpolation:-Kriging:-GenerateSpatialData⁡Spherical⁡1,10,1
These can be used to demonstrate Kriging interpolation.
k1 ≔ Interpolation:-Kriging⁡points1,data1
k1≔Krⅈgⅈng ⅈntⅇrpolatⅈon obȷⅇct wⅈth 30 samplⅇ poⅈntsVarⅈogram: Sphⅇrⅈcal(1.25259453854482,13.6487615617247,.5525536774)
Krⅈgⅈng ⅈntⅇrpolatⅈon obȷⅇct wⅈth 30 samplⅇ poⅈntsVarⅈogram: Sphⅇrⅈcal(1,10,1)
We now generate some points in a three-dimensional grid and associated data.
points2,data2 ≔ Interpolation:-Kriging:-GenerateSpatialData⁡RationalQuadratic⁡0.1,10,4,216,dimension=3,grid=true
k2 ≔ Interpolation:-Kriging⁡points2,data2
k2≔Krⅈgⅈng ⅈntⅇrpolatⅈon obȷⅇct wⅈth 216 samplⅇ poⅈntsVarⅈogram: Sphⅇrⅈcal(1.49801816123696,21.6426663008101,.8)
Krⅈgⅈng ⅈntⅇrpolatⅈon obȷⅇct wⅈth 216 samplⅇ poⅈntsVarⅈogram: RatⅈonalQuaⅆratⅈc(.1,10,4)
The Interpolation[Kriging][GenerateSpatialData] command was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
Download Help Document