FORCES
FORtran lib for Comp. Env. Sys.
|
Quick median calculation. More...
Public Member Functions | |
real(sp) function | qmedian_sp (dat) |
real(dp) function | qmedian_dp (dat) |
Quick median calculation.
Quick calculation of the median thereby rearranging the input array.
Example
See also example in test directory.
Literature
[in,out] | real(sp/dp) :: vec(:) | 1D-array with input numbers. Will be rearranged on output. |
real(sp/dp) :: out | Median of values in input array |
Definition at line 209 of file mo_percentile.f90.
real(dp) function mo_percentile::qmedian::qmedian_dp | ( | real(dp), dimension(:), intent(inout) | dat | ) |
Definition at line 923 of file mo_percentile.f90.
real(sp) function mo_percentile::qmedian::qmedian_sp | ( | real(sp), dimension(:), intent(inout) | dat | ) |
Definition at line 970 of file mo_percentile.f90.