forlab_stats Module


Uses

    • stdlib_kinds
    • stdlib_stats

Contents


Interfaces

public interface randn

Generate a normal distributed data scalar or vector. (Specification)

  • private module function randn_0_dp(mean, std) result(random)

    Arguments

    Type IntentOptional AttributesName
    real(kind=dp), intent(in) :: mean
    real(kind=dp), intent(in) :: std

    Return Value real(kind=dp)

  • private module function randn_0_sp(mean, std) result(random)

    Arguments

    Type IntentOptional AttributesName
    real(kind=sp), intent(in) :: mean
    real(kind=sp), intent(in) :: std

    Return Value real(kind=sp)

  • private module function randn_1_dp(mean, std, ndim) result(random)

    Arguments

    Type IntentOptional AttributesName
    real(kind=dp), intent(in) :: mean
    real(kind=dp), intent(in) :: std
    integer, intent(in) :: ndim

    Return Value real(kind=dp) (ndim)

  • private module function randn_1_sp(mean, std, ndim) result(random)

    Arguments

    Type IntentOptional AttributesName
    real(kind=sp), intent(in) :: mean
    real(kind=sp), intent(in) :: std
    integer, intent(in) :: ndim

    Return Value real(kind=sp) (ndim)

public interface randu

Generate an uniformly distributed data scalar or vector. (Specification)

  • private module function randu_0_iint16(start, end) result(random)

    Arguments

    Type IntentOptional AttributesName
    integer(kind=int16), intent(in) :: start
    integer(kind=int16), intent(in) :: end

    Return Value integer(kind=int16)

  • private module function randu_0_iint32(start, end) result(random)

    Arguments

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

    Return Value integer(kind=int32)

  • private module function randu_0_iint64(start, end) result(random)

    Arguments

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

    Return Value integer(kind=int64)

  • private module function randu_0_iint8(start, end) result(random)

    Arguments

    Type IntentOptional AttributesName
    integer(kind=int8), intent(in) :: start
    integer(kind=int8), intent(in) :: end

    Return Value integer(kind=int8)

  • private module function randu_0_rdp(start, end) result(random)

    Arguments

    Type IntentOptional AttributesName
    real(kind=dp), intent(in) :: start
    real(kind=dp), intent(in) :: end

    Return Value real(kind=dp)

  • private module function randu_0_rsp(start, end) result(random)

    Arguments

    Type IntentOptional AttributesName
    real(kind=sp), intent(in) :: start
    real(kind=sp), intent(in) :: end

    Return Value real(kind=sp)

  • private module function randu_1_iint16(start, end, ndim) result(random)

    Arguments

    Type IntentOptional AttributesName
    integer(kind=int16), intent(in) :: start
    integer(kind=int16), intent(in) :: end
    integer, intent(in) :: ndim

    Return Value integer(kind=int16) (ndim)

  • private module function randu_1_iint32(start, end, ndim) result(random)

    Arguments

    Type IntentOptional AttributesName
    integer(kind=int32), intent(in) :: start
    integer(kind=int32), intent(in) :: end
    integer, intent(in) :: ndim

    Return Value integer(kind=int32) (ndim)

  • private module function randu_1_iint64(start, end, ndim) result(random)

    Arguments

    Type IntentOptional AttributesName
    integer(kind=int64), intent(in) :: start
    integer(kind=int64), intent(in) :: end
    integer, intent(in) :: ndim

    Return Value integer(kind=int64) (ndim)

  • private module function randu_1_iint8(start, end, ndim) result(random)

    Arguments

    Type IntentOptional AttributesName
    integer(kind=int8), intent(in) :: start
    integer(kind=int8), intent(in) :: end
    integer, intent(in) :: ndim

    Return Value integer(kind=int8) (ndim)

  • private module function randu_1_rdp(start, end, ndim) result(random)

    Arguments

    Type IntentOptional AttributesName
    real(kind=dp), intent(in) :: start
    real(kind=dp), intent(in) :: end
    integer, intent(in) :: ndim

    Return Value real(kind=dp) (ndim)

  • private module function randu_1_rsp(start, end, ndim) result(random)

    Arguments

    Type IntentOptional AttributesName
    real(kind=sp), intent(in) :: start
    real(kind=sp), intent(in) :: end
    integer, intent(in) :: ndim

    Return Value real(kind=sp) (ndim)

interface

  • public module module subroutine rng(seed)

    Arguments

    Type IntentOptional AttributesName
    integer, intent(in), optional :: seed

public interface std

std computes vector and matrix standard deviations. (Specification)

  • private module function std_1_dp(x, w)

    Arguments

    Type IntentOptional AttributesName
    real(kind=dp), intent(in), dimension(:):: x
    integer, intent(in), optional :: w

    Return Value real(kind=dp)

  • private module function std_1_sp(x, w)

    Arguments

    Type IntentOptional AttributesName
    real(kind=sp), intent(in), dimension(:):: x
    integer, intent(in), optional :: w

    Return Value real(kind=sp)

  • private module function std_2_dp(A, w, dim)

    Arguments

    Type IntentOptional AttributesName
    real(kind=dp), intent(in), dimension(:, :):: A
    integer, intent(in), optional :: w
    integer, intent(in), optional :: dim

    Return Value real(kind=dp), dimension(:), allocatable

  • private module function std_2_sp(A, w, dim)

    Arguments

    Type IntentOptional AttributesName
    real(kind=sp), intent(in), dimension(:, :):: A
    integer, intent(in), optional :: w
    integer, intent(in), optional :: dim

    Return Value real(kind=sp), dimension(:), allocatable

public interface var

std computes vector and matrix standard deviations. (Specification)

  • private module function var_1_dp(x, w)

    Arguments

    Type IntentOptional AttributesName
    real(kind=dp), intent(in), dimension(:):: x
    integer, intent(in), optional :: w

    Return Value real(kind=dp)

  • private module function var_1_sp(x, w)

    Arguments

    Type IntentOptional AttributesName
    real(kind=sp), intent(in), dimension(:):: x
    integer, intent(in), optional :: w

    Return Value real(kind=sp)

  • private module function var_2_dp(A, w, dim)

    Arguments

    Type IntentOptional AttributesName
    real(kind=dp), intent(in), dimension(:, :):: A
    integer, intent(in), optional :: w
    integer, intent(in), optional :: dim

    Return Value real(kind=dp), dimension(:), allocatable

  • private module function var_2_sp(A, w, dim)

    Arguments

    Type IntentOptional AttributesName
    real(kind=sp), intent(in), dimension(:, :):: A
    integer, intent(in), optional :: w
    integer, intent(in), optional :: dim

    Return Value real(kind=sp), dimension(:), allocatable