FORCES
FORtran lib for Comp. Env. Sys.
|
Sum of absolute errors. More...
Public Member Functions | |
real(sp) function | sae_sp_1d (x, y, mask) |
real(dp) function | sae_dp_1d (x, y, mask) |
real(sp) function | sae_sp_2d (x, y, mask) |
real(dp) function | sae_dp_2d (x, y, mask) |
real(sp) function | sae_sp_3d (x, y, mask) |
real(dp) function | sae_dp_3d (x, y, mask) |
Sum of absolute errors.
Calculates the sum of absolute errors
\[ SAE = \sum_i|y_i - x_i| \]
If an optional mask is given, the calculations are over those locations that correspond to true values in the mask. \( x\) and \( y\) can be single or double precision. The result will have the same numerical precision.
Example
See also example in test directory.
[in] | real(sp/dp), dimension() :: x, y | 1D/2D/3D-array with input numbers. |
[in] | logical, optional :: mask | 1D/2D/Array-array of logical values with size(x/y) . If present, only those locations in vec corresponding to the true values in mask are used. |
Definition at line 394 of file mo_errormeasures.f90.
real(dp) function mo_errormeasures::sae::sae_dp_1d | ( | real(dp), dimension(:), intent(in) | x, |
real(dp), dimension(:), intent(in) | y, | ||
logical, dimension(:), intent(in), optional | mask | ||
) |
Definition at line 2497 of file mo_errormeasures.f90.
real(dp) function mo_errormeasures::sae::sae_dp_2d | ( | real(dp), dimension(:, :), intent(in) | x, |
real(dp), dimension(:, :), intent(in) | y, | ||
logical, dimension(:, :), intent(in), optional | mask | ||
) |
Definition at line 2567 of file mo_errormeasures.f90.
real(dp) function mo_errormeasures::sae::sae_dp_3d | ( | real(dp), dimension(:, :, :), intent(in) | x, |
real(dp), dimension(:, :, :), intent(in) | y, | ||
logical, dimension(:, :, :), intent(in), optional | mask | ||
) |
Definition at line 2641 of file mo_errormeasures.f90.
real(sp) function mo_errormeasures::sae::sae_sp_1d | ( | real(sp), dimension(:), intent(in) | x, |
real(sp), dimension(:), intent(in) | y, | ||
logical, dimension(:), intent(in), optional | mask | ||
) |
Definition at line 2463 of file mo_errormeasures.f90.
real(sp) function mo_errormeasures::sae::sae_sp_2d | ( | real(sp), dimension(:, :), intent(in) | x, |
real(sp), dimension(:, :), intent(in) | y, | ||
logical, dimension(:, :), intent(in), optional | mask | ||
) |
Definition at line 2531 of file mo_errormeasures.f90.
real(sp) function mo_errormeasures::sae::sae_sp_3d | ( | real(sp), dimension(:, :, :), intent(in) | x, |
real(sp), dimension(:, :, :), intent(in) | y, | ||
logical, dimension(:, :, :), intent(in), optional | mask | ||
) |
Definition at line 2603 of file mo_errormeasures.f90.