Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
Variables
Type
Visibility
Attributes
Name
Initial
integer(kind=default_int),
private
::
denom
real(kind=dp),
private
::
m
integer(kind=default_int),
private
::
n
logical,
private
::
use_sample
Source Code
pure function variance_dp(array,sample)result(v)!! Variance of a real(dp) array (core implementation, two-pass).real(dp),intent(in)::array(:)logical,intent(in),optional::samplereal(dp)::vreal(dp)::minteger(default_int)::n,denomlogical::use_sampleuse_sample=.true.if(present(sample))use_sample=samplen=size(array,kind=default_int)if(use_sample)thendenom=n-1elsedenom=nend if if(denom<=0)thenv=0.0_dpelsem=sum(array)/real(n,dp)v=sum((array-m)**2)/real(denom,dp)end if end function variance_dp