0.6.2-dev0
FORCES
FORtran lib for Comp. Env. Sys.
Loading...
Searching...
No Matches
mo_moment::mixed_central_moment_var Interface Reference

Mixed central moment variance. More...

Public Member Functions

real(sp) function mixed_central_moment_var_sp (x, y, r, s, mask)
 
real(dp) function mixed_central_moment_var_dp (x, y, r, s, mask)
 

Detailed Description

Mixed central moment variance.

Calculates the sample variance of r,s-th mixed central moment between two vectors. mixed_central_moment_var is something like the "error variance" of the r,s-th order mixed central moment sampling statistic.

If an optinal mask is given, the average is only over those locations that correspond to true values in the mask. \(x\) can be single or double precision. The result will have the same numerical precision.

Example

 vec1 = (/ 1., 2, 3., -999., 5., 6. /)
 vec2 = (/ 1.3, 2.7, 3.9, 5.1, 6., 8. /)
 em   = mixed_central_moment_var(vec1, vec2, 2, 2, mask=((vec1 >= 0.) .and. (vec2 >= 0.)))

See also example in test directory.

Literature

  1. LH Benedict & RD Gould, Towards better uncertainty estimates for turbulence statistics, Experiments in Fluids 22, 129-136, 1996
Parameters
[in]real(sp/dp) :: x(:)First 1D-array
[in]real(sp/dp) :: y(:)Second 1D-array
[in]integer(i4) :: rOrder of x
[in]integer(i4) :: sOrder of y
[in]logical, optional :: mask(:)1D-array of logical values with size(x). If present, only those locations in dat corresponding to the true values in mask are used.
Return values
real(sp/dp) :: mixed_central_moment_varSampling variance of r,s-th mixed central moment between x and y
Note
Input values must be floating points.
Author
Matthias Cuntz
Date
Nov 2011

Definition at line 444 of file mo_moment.f90.

Member Function/Subroutine Documentation

◆ mixed_central_moment_var_dp()

real(dp) function mo_moment::mixed_central_moment_var::mixed_central_moment_var_dp ( real(dp), dimension(:), intent(in)  x,
real(dp), dimension(:), intent(in)  y,
integer(i4), intent(in)  r,
integer(i4), intent(in)  s,
logical, dimension(:), intent(in), optional  mask 
)

Definition at line 1265 of file mo_moment.f90.

◆ mixed_central_moment_var_sp()

real(sp) function mo_moment::mixed_central_moment_var::mixed_central_moment_var_sp ( real(sp), dimension(:), intent(in)  x,
real(sp), dimension(:), intent(in)  y,
integer(i4), intent(in)  r,
integer(i4), intent(in)  s,
logical, dimension(:), intent(in), optional  mask 
)

Definition at line 1311 of file mo_moment.f90.


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