mean Interface

public interface mean

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)

Calls

interface~~mean~~CallsGraph interface~mean mean proc~mean_dp mean_dp interface~mean->proc~mean_dp proc~mean_int32 mean_int32 interface~mean->proc~mean_int32 proc~mean_int64 mean_int64 interface~mean->proc~mean_int64 proc~mean_sp mean_sp interface~mean->proc~mean_sp

Module Procedures

private pure function mean_int32(array) result(m)

Mean of an integer(int32) array.

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: array(:)

Return Value real(kind=dp)

private pure function mean_int64(array) result(m)

Mean of an integer(int64) array.

Arguments

Type IntentOptional Attributes Name
integer(kind=int64), intent(in) :: array(:)

Return Value real(kind=dp)

private pure function mean_sp(array) result(m)

Mean of a real(sp) array.

Arguments

Type IntentOptional Attributes Name
real(kind=sp), intent(in) :: array(:)

Return Value real(kind=dp)

private pure function mean_dp(array) result(m)

Mean of a real(dp) array.

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: array(:)

Return Value real(kind=dp)