Navigation: Scripting Reference Manual > Functions & Subroutines > ARNCompute2DCellStatistics

 

ARNCompute2DCellStatistics

 

Contact Us: fredsupport@photonengr.com

 

Description

Calculates the statistics of the data contained in a 2D ARN.

 

Syntax

ARNCompute2DCellStatistics arnNode, cellStats

 

Parameters

arnNode As Long

Node number of the ARN being queried for statistics.

 

cellStats As T_ARN_2D_CELL_STATS

Data structure whose members contain the statistical results of the analysis.

 

Example

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

 

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

 

 

See Also

T_ARN_2D_CELL_STATS

All ARN Scripting Commands

 

 

 

 

 

Copyright © Photon Engineering, LLC