display the empirical variogram of the data from a Kriging object
a Kriging object
(optional) keyword options of the form output=format, bounds=b, and/or variogram=m
The DisplayVariogram command can be used to produce different visualizations of the empirical variogram for a given set of data; that is, the set of distances between pairs of points and the associated absolute differences in value.
By default, every pair of data points has its distance and absolute difference in values calculated, and each [distance, difference] pair is plotted, together with the curve of the selected variogram.
You can specify a different type of output using the keyword option output = format:
If format is pointplot, the default output described above is selected.
If format is points, then a list of the [distance, difference] pairs corresponding to each pair of points will be returned instead of a plot of those points.
If format is smoothed, then the curve given by the set of [distance, difference] pairs is smoothed by the Lowess algorithm (with bandwidth=1/3), then plotted in the relevant range.
If format is groupedpoints, then the set of [distance, difference] pairs is sorted in order of increasing distance, split into subsets of size 10, and each subset has its average distance and absolute difference in values calculated and plotted.
If format is lists, then the sequence distances, differences will be returned instead of a plot, where distances is a list of point distances and differences is a list of absolute differences in value. distances[i] corresponds to differences[i], but otherwise the lists are in no particular order.
If format is violinplots then the data is grouped and a set of violin plots are plotted.
If format is bins then the data is grouped and a list of matrices is returned. The first column of each matrix corresponds to the distances falling in that bin, and the second column holds the distances.
By default, ten bins of equal width are used. Other options can be used by specifying the bounds option as described below. These are the same options available in the SplitByColumn command, except with a different default value, and the value none is not allowed. (The bounds option has no effect if format = bins is not specified.)
bounds=n for a positive integer n means values from the set of distances will be divided into n bins of equal width. The default value for bounds is bounds = 10.
bounds=b0,b1,...,bn means values from the set of distances will be divided into n bins: from b0 to b1, from b1 to b2, etc. Values less than b0 or greater than bn, and the rows containing them, are discarded.
These intervals are closed on the left and open on the right; that is, if the exact value b1 occurs in the data, then that row goes into the second matrix, not the first one. The rightmost bin is an exception: it represents an interval closed on both sides.
Instead of using a list b0,b1,...,bn, you can also use a Vector with the same entries. This has the same effect.
bounds=quantiles⁡q0,q1,...,qn or bounds=deciles⁡d0,d1,...,dn or bounds=percentiles⁡p0,p1,...,pn or bounds=quartiles⁡q0,q1,...,qn are equivalent ways of specifying bins similar to specifying a list, but instead of specifying absolute numbers for the bounds, you specify which fraction of the data should fall in each of the bins.
For example, specifying bounds=percentiles⁡0,25,60,90 specifies three bins, the first of which contains the lowest 25% of data, then then next 60% - 25% = 35% of data, and finally the following 90% - 60% = 30% of data. That is, the bounds are at the 0th, 25th, 60th, and 90th Percentile of the data in the set of distances. This could also be specified as bounds=quantiles⁡0,0.25,0.6,0.9 using the notion of Quantile instead of Percentile, or bounds=deciles⁡0,2.5,6,9 using Deciles, or bounds=quartiles⁡0,1,2.4,3.6 using Quartiles.
By default, the variogram used is the one set in the Kriging object. If the variogram = m option is set, then this is overridden and the variogram m is used instead. If the model is specified but the parameters are not given, then the parameters will be automatically set to the result of FitVariogramParameters.
The variogram option is ignored if output is lists or points.
points,data≔0.8147236863931790.7060460880196090.9057919370756190.03183284637742070.1269868162935060.2769229849608900.9133758561390190.04617139063115390.6323592462254100.09713178123584750.09754040499940950.8234578283272930.2784982188670480.6948286229758170.5468815192049840.3170994800608610.9575068354342980.9502220488383550.9648885351992770.0344460805029088⋮⋮30 × 2 Matrix,−1.313178883098413.78399452938781−4.079067475567302.810336570210803.071599080823320.128958765233144−3.217372722382460.7072451657106190.08778773037919260.937296621856498⋮30 element Vector[column]
k≔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)
If the points are in a grid, as is the case when we use the grid option to GenerateSpatialData, then the distances between points will have clearly visible patterns in them.
points,data≔0.0.0.0.5000000000000000.0.1.0.0.1.0.5000000000000000.0.5000000000000000.5000000000000000.0.0.5000000000000000.0.1.0.0.5000000000000001.0.1.1.0.1.1.0.500000000000000⋮⋮⋮27 × 3 Matrix,8.265429250229241.71211685528736−0.892655380227703−0.7646517912239231.207266747937616.282395906958113.14394183965808−5.16321963113363−4.109631764177324.32003414625718⋮27 element Vector[column]
k≔Krⅈgⅈng ⅈntⅇrpolatⅈon obȷⅇct wⅈth 27 samplⅇ poⅈntsVarⅈogram: Sphⅇrⅈcal(3.10794971558648,40.9936480954218,1.)
Krⅈgⅈng ⅈntⅇrpolatⅈon obȷⅇct wⅈth 27 samplⅇ poⅈntsVarⅈogram: Wavⅇ(0,10,2)
The Interpolation[Kriging][DisplayVariogram] command was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
Interpolating at a point
Download Help Document
What kind of issue would you like to report? (Optional)