stdlib_stats_distribution_uniform Module



Interfaces

public interface cdf_uniform

Get uniform distribution cumulative distribution function (cdf) for integer, real and complex variables. (Specification)

  • private elemental function cdf_unif_iint8(x, loc, scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int8), intent(in) :: x
    integer(kind=int8), intent(in) :: loc
    integer(kind=int8), intent(in) :: scale

    Return Value real

  • private elemental function cdf_unif_iint16(x, loc, scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int16), intent(in) :: x
    integer(kind=int16), intent(in) :: loc
    integer(kind=int16), intent(in) :: scale

    Return Value real

  • private elemental function cdf_unif_iint32(x, loc, scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int32), intent(in) :: x
    integer(kind=int32), intent(in) :: loc
    integer(kind=int32), intent(in) :: scale

    Return Value real

  • private elemental function cdf_unif_iint64(x, loc, scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int64), intent(in) :: x
    integer(kind=int64), intent(in) :: loc
    integer(kind=int64), intent(in) :: scale

    Return Value real

  • private elemental function cdf_unif_rsp(x, loc, scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    real(kind=sp), intent(in) :: x
    real(kind=sp), intent(in) :: loc
    real(kind=sp), intent(in) :: scale

    Return Value real(kind=sp)

  • private elemental function cdf_unif_rdp(x, loc, scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    real(kind=dp), intent(in) :: x
    real(kind=dp), intent(in) :: loc
    real(kind=dp), intent(in) :: scale

    Return Value real(kind=dp)

  • private elemental function cdf_unif_csp(x, loc, scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    complex(kind=sp), intent(in) :: x
    complex(kind=sp), intent(in) :: loc
    complex(kind=sp), intent(in) :: scale

    Return Value real(kind=sp)

  • private elemental function cdf_unif_cdp(x, loc, scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    complex(kind=dp), intent(in) :: x
    complex(kind=dp), intent(in) :: loc
    complex(kind=dp), intent(in) :: scale

    Return Value real(kind=dp)

public interface pdf_uniform

Get uniform distribution probability density (pdf) for integer, real and complex variables. (Specification)

  • private elemental function pdf_unif_iint8(x, loc, scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int8), intent(in) :: x
    integer(kind=int8), intent(in) :: loc
    integer(kind=int8), intent(in) :: scale

    Return Value real

  • private elemental function pdf_unif_iint16(x, loc, scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int16), intent(in) :: x
    integer(kind=int16), intent(in) :: loc
    integer(kind=int16), intent(in) :: scale

    Return Value real

  • private elemental function pdf_unif_iint32(x, loc, scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int32), intent(in) :: x
    integer(kind=int32), intent(in) :: loc
    integer(kind=int32), intent(in) :: scale

    Return Value real

  • private elemental function pdf_unif_iint64(x, loc, scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int64), intent(in) :: x
    integer(kind=int64), intent(in) :: loc
    integer(kind=int64), intent(in) :: scale

    Return Value real

  • private elemental function pdf_unif_rsp(x, loc, scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    real(kind=sp), intent(in) :: x
    real(kind=sp), intent(in) :: loc
    real(kind=sp), intent(in) :: scale

    Return Value real(kind=sp)

  • private elemental function pdf_unif_rdp(x, loc, scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    real(kind=dp), intent(in) :: x
    real(kind=dp), intent(in) :: loc
    real(kind=dp), intent(in) :: scale

    Return Value real(kind=dp)

  • private elemental function pdf_unif_csp(x, loc, scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    complex(kind=sp), intent(in) :: x
    complex(kind=sp), intent(in) :: loc
    complex(kind=sp), intent(in) :: scale

    Return Value real(kind=sp)

  • private elemental function pdf_unif_cdp(x, loc, scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    complex(kind=dp), intent(in) :: x
    complex(kind=dp), intent(in) :: loc
    complex(kind=dp), intent(in) :: scale

    Return Value real(kind=dp)

public interface rvs_uniform

Get uniformly distributed random variate for integer, real and complex variables. (Specification)

  • private impure elemental function rvs_unif_0_rsp() result(res)

    Arguments

    None

    Return Value real(kind=sp)

  • private impure elemental function rvs_unif_1_iint8(scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int8), intent(in) :: scale

    Return Value integer(kind=int8)

  • private impure elemental function rvs_unif_1_iint16(scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int16), intent(in) :: scale

    Return Value integer(kind=int16)

  • private impure elemental function rvs_unif_1_iint32(scale) result(res)

    Arguments

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

    Return Value integer(kind=int32)

  • private impure elemental function rvs_unif_1_iint64(scale) result(res)

    Arguments

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

    Return Value integer(kind=int64)

  • private impure elemental function rvs_unif_1_rsp(scale) result(res)

    Arguments

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

    Return Value real(kind=sp)

  • private impure elemental function rvs_unif_1_rdp(scale) result(res)

    Arguments

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

    Return Value real(kind=dp)

  • private impure elemental function rvs_unif_1_csp(scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    complex(kind=sp), intent(in) :: scale

    Return Value complex(kind=sp)

  • private impure elemental function rvs_unif_1_cdp(scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    complex(kind=dp), intent(in) :: scale

    Return Value complex(kind=dp)

  • private impure elemental function rvs_unif_iint8(loc, scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int8), intent(in) :: loc
    integer(kind=int8), intent(in) :: scale

    Return Value integer(kind=int8)

  • private impure elemental function rvs_unif_iint16(loc, scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int16), intent(in) :: loc
    integer(kind=int16), intent(in) :: scale

    Return Value integer(kind=int16)

  • private impure elemental function rvs_unif_iint32(loc, scale) result(res)

    Arguments

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

    Return Value integer(kind=int32)

  • private impure elemental function rvs_unif_iint64(loc, scale) result(res)

    Arguments

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

    Return Value integer(kind=int64)

  • private impure elemental function rvs_unif_rsp(loc, scale) result(res)

    Arguments

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

    Return Value real(kind=sp)

  • private impure elemental function rvs_unif_rdp(loc, scale) result(res)

    Arguments

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

    Return Value real(kind=dp)

  • private impure elemental function rvs_unif_csp(loc, scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    complex(kind=sp), intent(in) :: loc
    complex(kind=sp), intent(in) :: scale

    Return Value complex(kind=sp)

  • private impure elemental function rvs_unif_cdp(loc, scale) result(res)

    Arguments

    Type IntentOptional Attributes Name
    complex(kind=dp), intent(in) :: loc
    complex(kind=dp), intent(in) :: scale

    Return Value complex(kind=dp)

  • private function rvs_unif_array_iint8(loc, scale, array_size) result(res)

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int8), intent(in) :: loc
    integer(kind=int8), intent(in) :: scale
    integer, intent(in) :: array_size

    Return Value integer(kind=int8), (array_size)

  • private function rvs_unif_array_iint16(loc, scale, array_size) result(res)

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int16), intent(in) :: loc
    integer(kind=int16), intent(in) :: scale
    integer, intent(in) :: array_size

    Return Value integer(kind=int16), (array_size)

  • private function rvs_unif_array_iint32(loc, scale, array_size) result(res)

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int32), intent(in) :: loc
    integer(kind=int32), intent(in) :: scale
    integer, intent(in) :: array_size

    Return Value integer(kind=int32), (array_size)

  • private function rvs_unif_array_iint64(loc, scale, array_size) result(res)

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int64), intent(in) :: loc
    integer(kind=int64), intent(in) :: scale
    integer, intent(in) :: array_size

    Return Value integer(kind=int64), (array_size)

  • private function rvs_unif_array_rsp(loc, scale, array_size) result(res)

    Arguments

    Type IntentOptional Attributes Name
    real(kind=sp), intent(in) :: loc
    real(kind=sp), intent(in) :: scale
    integer, intent(in) :: array_size

    Return Value real(kind=sp), (array_size)

  • private function rvs_unif_array_rdp(loc, scale, array_size) result(res)

    Arguments

    Type IntentOptional Attributes Name
    real(kind=dp), intent(in) :: loc
    real(kind=dp), intent(in) :: scale
    integer, intent(in) :: array_size

    Return Value real(kind=dp), (array_size)

  • private function rvs_unif_array_csp(loc, scale, array_size) result(res)

    Arguments

    Type IntentOptional Attributes Name
    complex(kind=sp), intent(in) :: loc
    complex(kind=sp), intent(in) :: scale
    integer, intent(in) :: array_size

    Return Value complex(kind=sp), (array_size)

  • private function rvs_unif_array_cdp(loc, scale, array_size) result(res)

    Arguments

    Type IntentOptional Attributes Name
    complex(kind=dp), intent(in) :: loc
    complex(kind=dp), intent(in) :: scale
    integer, intent(in) :: array_size

    Return Value complex(kind=dp), (array_size)

public interface shuffle

Fisher-Yates shuffle algorithm for a rank one array of integer, real and complex variables. (Specification)

  • private function shuffle_iint8(list) result(res)

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int8), intent(in) :: list(:)

    Return Value integer(kind=int8), (size(list))

  • private function shuffle_iint16(list) result(res)

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=int16), intent(in) :: list(:)

    Return Value integer(kind=int16), (size(list))

  • private function shuffle_iint32(list) result(res)

    Arguments

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

    Return Value integer(kind=int32), (size(list))

  • private function shuffle_iint64(list) result(res)

    Arguments

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

    Return Value integer(kind=int64), (size(list))

  • private function shuffle_rsp(list) result(res)

    Arguments

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

    Return Value real(kind=sp), (size(list))

  • private function shuffle_rdp(list) result(res)

    Arguments

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

    Return Value real(kind=dp), (size(list))

  • private function shuffle_csp(list) result(res)

    Arguments

    Type IntentOptional Attributes Name
    complex(kind=sp), intent(in) :: list(:)

    Return Value complex(kind=sp), (size(list))

  • private function shuffle_cdp(list) result(res)

    Arguments

    Type IntentOptional Attributes Name
    complex(kind=dp), intent(in) :: list(:)

    Return Value complex(kind=dp), (size(list))