The AHA Model  Revision: 12809
Reference implementation 04 (HEDG02_04)
commondata::average Interface Reference

Calculate an average of an array excluding missing code values. More...

Collaboration diagram for commondata::average:

Public Member Functions

pure real(srp) function average_r (array_in, missing_code, undef_ret_null)
 Calculate an average value of a real array, excluding MISSING values. More...
 
pure real(srp) function average_i (array_in, missing_code, undef_ret_null)
 Calculate an average value of an integer array, excluding MISSING values. More...
 

Detailed Description

Calculate an average of an array excluding missing code values.

Definition at line 5491 of file m_common.f90.

Member Function/Subroutine Documentation

◆ average_r()

pure real(srp) function commondata::average::average_r ( real(srp), dimension(:), intent(in)  array_in,
real(srp), intent(in), optional  missing_code,
logical, intent(in), optional  undef_ret_null 
)

Calculate an average value of a real array, excluding MISSING values.

Parameters
vector_inThe input data vector
missing_codeOptional parameter setting the missing data code, to be excluded from the calculation of the mean.
undef_ret_nullOptional parameter, if TRUE, the function returns zero rather than undefined if the sample size is zero.
Returns
The mean value of the vector.
Note
This is a real array version.

Definition at line 5952 of file m_common.f90.

◆ average_i()

pure real(srp) function commondata::average::average_i ( integer, dimension(:), intent(in)  array_in,
integer, intent(in), optional  missing_code,
logical, intent(in), optional  undef_ret_null 
)

Calculate an average value of an integer array, excluding MISSING values.

Returns
The mean value of the vector
Parameters
vector_inThe input data vector
missing_codeOptional parameter setting the missing data code, to be excluded from the calculation of the mean.
undef_ret_nullOptional parameter, if TRUE, the function returns zero rather than undefined if the sample size is zero.
Note
This is an integer array version.

Definition at line 6022 of file m_common.f90.


The documentation for this interface was generated from the following file: