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

AverageAbsoluteDeviation

Returns the average absolute deviation of the grid. It is a read-only property.

CoefVariation

Returns the coefficient of variation of the grid. It is a read-only property.

Count

Returns the count of the grid. It is a read-only property.

GeometricMean

Returns the geometric mean of the grid. It is a read-only property.

HarmonicMean

Returns the harmonic mean of the grid. It is a read-only property.

InterQuartileMean

Returns the interquartile mean of the grid. It is a read-only property.

InterQuartileRange

Returns the interquartile range of the grid. It is a read-only property.

Kurtosis

Returns the kurtosis of the grid. It is a read-only property.

Max

Returns the maximum z value of the grid. It is a read-only property.

Mean

Returns the mean of the grid. It is a read-only property.

MeanDifference

Returns the mean absolute difference of the grid. It is a read-only property.

MeanSquare

Returns the mean square of the grid. It is a read-only property.

Median

Returns the median of the grid. It is a read-only property.

MedianAbsoluteDeviation

Returns the median absolute deviation of the grid. It is a read-only property.

Midrange

Returns the midrange of the grid. It is a read-only property.

Min

Returns the minimum of the grid. It is a read-only property.

Percentile1

Returns 1st percentile of the grid. It is a read-only property.

Percentile10

Returns the 10th percentile of the grid. It is a read-only property.

Percentile25

Returns the 25h percentile of the grid. It is a read-only property.

Percentile5

Returns the 5th percentile of the grid. It is a read-only property.

Percentile50

Returns the 50th percentile of the grid. It is a read-only property.

Percentile75

Returns the 75th percentile of the grid. It is a read-only property.

Percentile90

Returns the 90th percentile of the grid. It is a read-only property.

Percentile95

Returns the 95th percentile of the grid. It is a read-only property.

Percentile99

Returns the 99th percentile of the grid. It is a read-only property.

QuartileDispersion

Returns the quartile dispersion of the grid. It is a read-only property.

Range

Returns the range of the grid. It is a read-only property.

RelativeMeanDifference

Returns the relative mean difference of the grid. It is a read-only property.

RootMeanSquare

Returns the root mean squre of the grid. It is a read-only property.

Skewness

Returns the skewness of the grid. It is a read-only property.

StandardDeviation

Returns the standard deviation of the grid. It is a read-only property.

StandardError

Returns the standard error of the grid. It is a read-only property.

Sum

Returns the sum of the grid. It is a read-only property.

SumAbsolute

Returns the sum of the absolute values of the grid. It is a read-only property.

SumSquares

Returns the sum of squares of the grid. It is a read-only property.

TriMean

Returns the TriMean of the grid. It is a read-only property.

TrimMean

Returns the trim mean of the grid. It is a read-only property.

Variance

Returns the variance of the grid. It is a read-only property.

WinsorizedMean

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