foreng_math_stats Module



Contents


Interfaces

public interface mean

  • public function rank_1_mean_r32(data_, type) result(mean_)

    Calculate the mean of a 1d data set, given the "type"

    Read more…

    Arguments

    Type IntentOptional AttributesName
    real(kind=real32), intent(in), dimension(:):: data_
    character(len=*), intent(in), optional :: type

    Return Value real(kind=real32)

  • public function rank_1_mean_r64(data_, type) result(mean_)

    Calculate the mean of a 1d data set, given the "type"

    Read more…

    Arguments

    Type IntentOptional AttributesName
    real(kind=real64), intent(in), dimension(:):: data_
    character(len=*), intent(in), optional :: type

    Return Value real(kind=real64)

  • public function rank_1_mean_i32(data_, type) result(mean_)

    Calculate the mean of a 1d data set, given the "type"

    Read more…

    Arguments

    Type IntentOptional AttributesName
    integer(kind=int32), intent(in), dimension(:):: data_
    character(len=*), intent(in), optional :: type

    Return Value real(kind=real32)

  • public function rank_1_mean_i64(data_, type) result(mean_)

    Calculate the mean of a 1d data set, given the "type"

    Read more…

    Arguments

    Type IntentOptional AttributesName
    integer(kind=int64), intent(in), dimension(:):: data_
    character(len=*), intent(in), optional :: type

    Return Value real(kind=real64)

public interface arithmetic_mean

  • public function rank1_arithmetic_mean_r32(data_) result(arithmetic_mean_)

    Calculate the arithmetic mean of a rank 1 array

    Arguments

    Type IntentOptional AttributesName
    real(kind=real32), intent(in) :: data_(:)

    Return Value real(kind=real32)

    Rank 1 array containing the elements to calculate the mean for

  • public function rank1_arithmetic_mean_r64(data_) result(arithmetic_mean_)

    Calculate the arithmetic mean of a rank 1 array

    Arguments

    Type IntentOptional AttributesName
    real(kind=real64), intent(in) :: data_(:)

    Return Value real(kind=real64)

    Rank 1 array containing the elements to calculate the mean for

  • public function rank1_arithmetic_mean_i32(data_) result(arithmetic_mean_)

    Calculate the arithmetic mean of a rank 1 array

    Arguments

    Type IntentOptional AttributesName
    integer(kind=int32), intent(in) :: data_(:)

    Rank 1 array containing the elements to calculate the mean for

    Return Value real(kind=real32)

  • public function rank1_arithmetic_mean_i64(data_) result(arithmetic_mean_)

    Calculate the arithmetic mean of a rank 1 array

    Arguments

    Type IntentOptional AttributesName
    integer(kind=int64), intent(in) :: data_(:)

    Return Value real(kind=real64)

    Rank 1 array containing the elements to calculate the mean for

public interface rms_mean

  • public function rank1_root_mean_squared_mean_r32(data_) result(rms_)

    Arguments

    Type IntentOptional AttributesName
    real(kind=real32), intent(in) :: data_(:)

    Return Value real(kind=real32)

    Rank 1 array containing the elements to calculate the mean for

  • public function rank1_root_mean_squared_mean_r64(data_) result(rms_)

    Arguments

    Type IntentOptional AttributesName
    real(kind=real64), intent(in) :: data_(:)

    Return Value real(kind=real64)

    Rank 1 array containing the elements to calculate the mean for

  • public function rank1_root_mean_squared_mean_i32(data_) result(rms_)

    Arguments

    Type IntentOptional AttributesName
    integer(kind=int32), intent(in) :: data_(:)

    Return Value real(kind=real32)

    Rank 1 array containing the elements to calculate the mean for

  • public function rank1_root_mean_squared_mean_i64(data_) result(rms_)

    Arguments

    Type IntentOptional AttributesName
    integer(kind=int64), intent(in) :: data_(:)

    Return Value real(kind=real64)

    Rank 1 array containing the elements to calculate the mean for

public interface harmonic_mean

  • public function rank1_harmonic_mean_r32(data_) result(harmonic_mean_)

    Arguments

    Type IntentOptional AttributesName
    real(kind=real32), intent(in) :: data_(:)

    Return Value real(kind=real32)

    Rank 1 array containing the elements to calculate the mean for

  • public function rank1_harmonic_mean_r64(data_) result(harmonic_mean_)

    Arguments

    Type IntentOptional AttributesName
    real(kind=real64), intent(in) :: data_(:)

    Return Value real(kind=real64)

    Rank 1 array containing the elements to calculate the mean for

  • public function rank1_harmonic_mean_i32(data_) result(harmonic_mean_)

    Arguments

    Type IntentOptional AttributesName
    integer(kind=int32), intent(in) :: data_(:)

    Return Value real(kind=real32)

    Rank 1 array containing the elements to calculate the mean for

  • public function rank1_harmonic_mean_i64(data_) result(harmonic_mean_)

    Arguments

    Type IntentOptional AttributesName
    integer(kind=int64), intent(in) :: data_(:)

    Return Value real(kind=real64)

    Rank 1 array containing the elements to calculate the mean for

public interface geometric_mean

  • public function rank1_geometric_mean_r32(data_) result(geometric_mean_)

    Arguments

    Type IntentOptional AttributesName
    real(kind=real32), intent(in) :: data_(:)

    Return Value real(kind=real32)

    Rank 1 array containing the elements to calculate the mean for

  • public function rank1_geometric_mean_r64(data_) result(geometric_mean_)

    Arguments

    Type IntentOptional AttributesName
    real(kind=real64), intent(in) :: data_(:)

    Return Value real(kind=real64)

    Rank 1 array containing the elements to calculate the mean for

  • public function rank1_geometric_mean_i32(data_) result(geometric_mean_)

    Arguments

    Type IntentOptional AttributesName
    integer(kind=int32), intent(in) :: data_(:)

    Return Value real(kind=real64)

    Rank 1 array containing the elements to calculate the mean for

  • public function rank1_geometric_mean_i64(data_) result(geometric_mean_)

    Arguments

    Type IntentOptional AttributesName
    integer(kind=int64), intent(in) :: data_(:)

    Return Value real(kind=real64)

    Rank 1 array containing the elements to calculate the mean for

public interface std_dev

  • public function std_dev_r32(data) result(sigma)

    Arguments

    Type IntentOptional AttributesName
    real(kind=real32), intent(in), dimension(:):: data

    Return Value real(kind=real32)

    population standard deviation

  • public function std_dev_r64(data) result(sigma)

    Arguments

    Type IntentOptional AttributesName
    real(kind=real64), intent(in), dimension(:):: data

    Return Value real(kind=real64)

    population standard deviation

  • public function std_dev_i32(data_) result(sigma)

    Arguments

    Type IntentOptional AttributesName
    integer(kind=int32), intent(in), dimension(:):: data_

    Return Value real(kind=real32)

    population standard deviation

  • public function std_dev_i64(data) result(sigma)

    Arguments

    Type IntentOptional AttributesName
    integer(kind=int64), intent(in), dimension(:):: data

    Return Value real(kind=real64)

    population standard deviation


Functions

public function rank_1_mean_r32(data_, type) result(mean_)

Calculate the mean of a 1d data set, given the "type"

Read more…

Arguments

Type IntentOptional AttributesName
real(kind=real32), intent(in), dimension(:):: data_
character(len=*), intent(in), optional :: type

Return Value real(kind=real32)

public function rank_1_mean_r64(data_, type) result(mean_)

Calculate the mean of a 1d data set, given the "type"

Read more…

Arguments

Type IntentOptional AttributesName
real(kind=real64), intent(in), dimension(:):: data_
character(len=*), intent(in), optional :: type

Return Value real(kind=real64)

public function rank_1_mean_i32(data_, type) result(mean_)

Calculate the mean of a 1d data set, given the "type"

Read more…

Arguments

Type IntentOptional AttributesName
integer(kind=int32), intent(in), dimension(:):: data_
character(len=*), intent(in), optional :: type

Return Value real(kind=real32)

public function rank_1_mean_i64(data_, type) result(mean_)

Calculate the mean of a 1d data set, given the "type"

Read more…

Arguments

Type IntentOptional AttributesName
integer(kind=int64), intent(in), dimension(:):: data_
character(len=*), intent(in), optional :: type

Return Value real(kind=real64)

public function rank1_arithmetic_mean_r32(data_) result(arithmetic_mean_)

Calculate the arithmetic mean of a rank 1 array

Arguments

Type IntentOptional AttributesName
real(kind=real32), intent(in) :: data_(:)

Return Value real(kind=real32)

Rank 1 array containing the elements to calculate the mean for

public function rank1_arithmetic_mean_r64(data_) result(arithmetic_mean_)

Calculate the arithmetic mean of a rank 1 array

Arguments

Type IntentOptional AttributesName
real(kind=real64), intent(in) :: data_(:)

Return Value real(kind=real64)

Rank 1 array containing the elements to calculate the mean for

public function rank1_arithmetic_mean_i32(data_) result(arithmetic_mean_)

Calculate the arithmetic mean of a rank 1 array

Arguments

Type IntentOptional AttributesName
integer(kind=int32), intent(in) :: data_(:)

Rank 1 array containing the elements to calculate the mean for

Return Value real(kind=real32)

public function rank1_arithmetic_mean_i64(data_) result(arithmetic_mean_)

Calculate the arithmetic mean of a rank 1 array

Arguments

Type IntentOptional AttributesName
integer(kind=int64), intent(in) :: data_(:)

Return Value real(kind=real64)

Rank 1 array containing the elements to calculate the mean for

public function rank1_root_mean_squared_mean_r32(data_) result(rms_)

Arguments

Type IntentOptional AttributesName
real(kind=real32), intent(in) :: data_(:)

Return Value real(kind=real32)

Rank 1 array containing the elements to calculate the mean for

public function rank1_root_mean_squared_mean_r64(data_) result(rms_)

Arguments

Type IntentOptional AttributesName
real(kind=real64), intent(in) :: data_(:)

Return Value real(kind=real64)

Rank 1 array containing the elements to calculate the mean for

public function rank1_root_mean_squared_mean_i32(data_) result(rms_)

Arguments

Type IntentOptional AttributesName
integer(kind=int32), intent(in) :: data_(:)

Return Value real(kind=real32)

Rank 1 array containing the elements to calculate the mean for

public function rank1_root_mean_squared_mean_i64(data_) result(rms_)

Arguments

Type IntentOptional AttributesName
integer(kind=int64), intent(in) :: data_(:)

Return Value real(kind=real64)

Rank 1 array containing the elements to calculate the mean for

public function rank1_harmonic_mean_r32(data_) result(harmonic_mean_)

Arguments

Type IntentOptional AttributesName
real(kind=real32), intent(in) :: data_(:)

Return Value real(kind=real32)

Rank 1 array containing the elements to calculate the mean for

public function rank1_harmonic_mean_r64(data_) result(harmonic_mean_)

Arguments

Type IntentOptional AttributesName
real(kind=real64), intent(in) :: data_(:)

Return Value real(kind=real64)

Rank 1 array containing the elements to calculate the mean for

public function rank1_harmonic_mean_i32(data_) result(harmonic_mean_)

Arguments

Type IntentOptional AttributesName
integer(kind=int32), intent(in) :: data_(:)

Return Value real(kind=real32)

Rank 1 array containing the elements to calculate the mean for

public function rank1_harmonic_mean_i64(data_) result(harmonic_mean_)

Arguments

Type IntentOptional AttributesName
integer(kind=int64), intent(in) :: data_(:)

Return Value real(kind=real64)

Rank 1 array containing the elements to calculate the mean for

public function rank1_geometric_mean_r32(data_) result(geometric_mean_)

Arguments

Type IntentOptional AttributesName
real(kind=real32), intent(in) :: data_(:)

Return Value real(kind=real32)

Rank 1 array containing the elements to calculate the mean for

public function rank1_geometric_mean_r64(data_) result(geometric_mean_)

Arguments

Type IntentOptional AttributesName
real(kind=real64), intent(in) :: data_(:)

Return Value real(kind=real64)

Rank 1 array containing the elements to calculate the mean for

public function rank1_geometric_mean_i32(data_) result(geometric_mean_)

Arguments

Type IntentOptional AttributesName
integer(kind=int32), intent(in) :: data_(:)

Return Value real(kind=real64)

Rank 1 array containing the elements to calculate the mean for

public function rank1_geometric_mean_i64(data_) result(geometric_mean_)

Arguments

Type IntentOptional AttributesName
integer(kind=int64), intent(in) :: data_(:)

Return Value real(kind=real64)

Rank 1 array containing the elements to calculate the mean for

public function std_dev_r32(data) result(sigma)

Arguments

Type IntentOptional AttributesName
real(kind=real32), intent(in), dimension(:):: data

Return Value real(kind=real32)

population standard deviation

public function std_dev_r64(data) result(sigma)

Arguments

Type IntentOptional AttributesName
real(kind=real64), intent(in), dimension(:):: data

Return Value real(kind=real64)

population standard deviation

public function std_dev_i32(data_) result(sigma)

Arguments

Type IntentOptional AttributesName
integer(kind=int32), intent(in), dimension(:):: data_

Return Value real(kind=real32)

population standard deviation

public function std_dev_i64(data) result(sigma)

Arguments

Type IntentOptional AttributesName
integer(kind=int64), intent(in), dimension(:):: data

Return Value real(kind=real64)

population standard deviation