GridStatistics Object
The GridStatistics object contains all of the grid statistics as properties.
The following table provides all the properties for the GridStatistics object:
Property |
Description |
Returns the average absolute deviation of the grid. It is a read-only property. |
|
Returns the coefficient of variation of the grid. It is a read-only property. |
|
Returns the count of the grid. It is a read-only property. |
|
Returns the geometric mean of the grid. It is a read-only property. |
|
Returns the harmonic mean of the grid. It is a read-only property. |
|
Returns the interquartile mean of the grid. It is a read-only property. |
|
Returns the interquartile range of the grid. It is a read-only property. |
|
Returns the kurtosis of the grid. It is a read-only property. |
|
Returns the maximum z value of the grid. It is a read-only property. |
|
Returns the mean of the grid. It is a read-only property. |
|
Returns the mean absolute difference of the grid. It is a read-only property. |
|
Returns the mean square of the grid. It is a read-only property. |
|
Returns the median of the grid. It is a read-only property. |
|
Returns the median absolute deviation of the grid. It is a read-only property. |
|
Returns the midrange of the grid. It is a read-only property. |
|
Returns the minimum of the grid. It is a read-only property. |
|
Returns 1st percentile of the grid. It is a read-only property. |
|
Returns the 10th percentile of the grid. It is a read-only property. |
|
Returns the 25h percentile of the grid. It is a read-only property. |
|
Returns the 5th percentile of the grid. It is a read-only property. |
|
Returns the 50th percentile of the grid. It is a read-only property. |
|
Returns the 75th percentile of the grid. It is a read-only property. |
|
Returns the 90th percentile of the grid. It is a read-only property. |
|
Returns the 95th percentile of the grid. It is a read-only property. |
|
Returns the 99th percentile of the grid. It is a read-only property. |
|
Returns the quartile dispersion of the grid. It is a read-only property. |
|
Returns the range of the grid. It is a read-only property. |
|
Returns the relative mean difference of the grid. It is a read-only property. |
|
Returns the root mean squre of the grid. It is a read-only property. |
|
Returns the skewness of the grid. It is a read-only property. |
|
Returns the standard deviation of the grid. It is a read-only property. |
|
Returns the standard error of the grid. It is a read-only property. |
|
Returns the sum of the grid. It is a read-only property. |
|
Returns the sum of the absolute values of the grid. It is a read-only property. |
|
Returns the sum of squares of the grid. It is a read-only property. |
|
Returns the TriMean of the grid. It is a read-only property. |
|
Returns the trim mean of the grid. It is a read-only property. |
|
Returns the variance of the grid. It is a read-only property. |
|
Returns the winsorized mean of the grid. It is a read-only property. |
Example
The following example demonstrates how the GridStatistics object is used in relation to the Grid object.
Sub Main
'Declares SurferApp as an object
Dim SurferApp As Object
'Creates an instance of the Surfer Application object and assigns
'it to the variable named "SurferApp"
Set SurferApp = CreateObject("Surfer.Application")
'Makes Surfer visible
SurferApp.Visible = True
'Declares Grid as an object
Dim Grid As Object
'Creates a new grid and assigns it to the variable named "Grid"
Set Grid = SurferApp.NewGrid
'Loads a grid file to the variable named "Grid"
Grid.LoadFile(FileName:=SurferApp.Path+"\Samples\demogrid.grd", HeaderOnly:=False)
'Creates a new grid statistics object and assigns it to the variable named "GridStatistics"
Set GridStatistics = Grid.Statistics
End Sub