Navigation: Scripting Reference Manual > Data Structures > T_ARN_2D_CELL_STATS

 

T_ARN_2D_CELL_STATS

 

Contact Us: fredsupport@photonengr.com

 

Description

Data structure containing the statistical analysis results on the data contained in an ARN.

 

 

Syntax

Type T_ARN_2D_CELL_STATS

ACentroid_Parametric

AvgCellVal As Double

AvgNonZeroCellVal As Double

AvgSqCellVal As Double

AvgSqNonZeroCellVal As Double

BCentroid_Parametric

CountOfHoleCells As Long

CountOfNonHoleCells As Long

CountOfNonZeroCells As Long

MaxCellVal As Double

MaxNonZeroIdxA As Long

MaxNonZeroIdxB As Long

MaxValIdxA As Long

MaxValIdxB As Long

MinCellVal As Double

MinNonZeroIdxA As Long

MinNonZeroIdxB As Long

MinValIdxA As Long

MinValIdxB As Long

End Type

 

 

Members

ACentroid_Parametric As Double

The position along the A-axis of the ARN at which the cell value weighted centroid of the distribution is located.

 

AvgCellVal As Double

Average value.

 

AvgNonZeroCellVal As Double

Average of the non-zero cells.

 

AvgSqCellVal As Double

Average of the cells after squaring.

 

AvgSqNonZeroCellVal As Double

Average of the non-zero cells after squaring.

 

BCentroid_Parametric As Double

The position along the B-axis of the ARN at which the cell value weighted centroid of the distribution is located.

 

CountOfHoleCells As Long

Number of cells which are hole values.

 

CountOfNonHoleCells As Long

Number of cells which are not hole values.

 

CountOfNonZeroCells As Long

Number of cells which are non-zero.

 

MaxCellVal As Double

Maximum value in the dataset.

 

MaxNonZeroIdxA As Long

Maximum index along the A axis containing non-zero data.

 

MaxNonZeroIdxB As Long

Maximum index along the B axis containing non-zero data.

 

MaxValIdxA As Long

Index along the A-axis of the cell with the maximum value.

 

MaxValIdxB As Long

Index along the B-axis of the cell with the maximum value.

 

MinCellVal As Double

Minimum value in the dataset.

 

MinNonZeroIdxA As Long

Minimum index along the A axis containing non-zero data.

 

MinNonZeroIdxB As Long

Minimum index along the B axis containing non-zero data.

 

MinValIdxA

Index along the A-axis of the cell with the minimum value.

 

MinValIdxB As Long

Index along the B-axis of the cell with the minimum value.

 

 

Example

The following example creates an ARN from an existing *.fgd file (test_output.fgd), computes the statistics and prints the standard deviation.

 

Sub Main

Dim cellStats As T_ARN_2D_CELL_STATS

Dim arnNode As Long

Dim data() As Double, stdDev As Double

 

arnNode = ARNCreateFromFile( GetDocDir() & "\test_output.fgd", "testARN" )

ARNCompute2DCellStatistics arnNode, cellStats

stdDev = Sqr( cellStats.AvgSqCellVal - cellStats.AvgCellVal^2 )

Print "The standard deviation is: " & stdDev

End Sub

 

 

See Also

ARNCompute2DCellStatistics

All ARN Scripting Commands

 

 

 

 

 

Copyright © Photon Engineering, LLC