is.texp: Is a Distribution Parameter Object Typed as Truncated...

is.texpR Documentation

Is a Distribution Parameter Object Typed as Truncated Exponential

Description

The distribution parameter object returned by functions of lmomco such as by partexp are typed by an attribute type. This function checks that type is texp for the Truncated Exponential distribution.

Usage

is.texp(para)

Arguments

para

A parameter list returned from partexp or vec2par.

Value

TRUE

If the type attribute is texp.

FALSE

If the type is not texp.

Author(s)

W.H. Asquith

See Also

partexp

Examples

yy <- vec2par(c(123, 2.3, TRUE),  type="texp")
zz <- vec2par(c(123, 2.3, FALSE), type="texp")
if(is.texp(yy) & is.texp(zz)) {
   print(lmomtexp(yy)$lambdas)
   print(lmomtexp(zz)$lambdas)
}

lmomco documentation built on Aug. 30, 2023, 5:10 p.m.