Arithmetic mean of a 1-D array, returned as real(dp).
Returns 0 for an empty array. Supported input types are:
integer(int32), integer(int64), real(sp), real(dp).
Usage: m = mean(array)
Mean of an integer(int32) array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | array(:) |
Mean of an integer(int64) array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int64), | intent(in) | :: | array(:) |
Mean of a real(sp) array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=sp), | intent(in) | :: | array(:) |
Mean of a real(dp) array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=dp), | intent(in) | :: | array(:) |