include_variance.f90 Source File


Contents

Source Code


Source Code

avg = mean(x)
res = SUM((x(:) - avg)**2)
res = res / REAL(SIZE(x) - 1,prec)