Learn R Programming

lmomco (version 1.4.3)

is.ray: Is a Distribution Parameter Object Typed as Rayleigh

Description

The distribution parameter object returned by functions of this module such as by parray are typed by an attribute type. This function checks that type is ray for the Rayleigh distribution.

Usage

is.ray(para)

Arguments

para
A parameter list returned from parray.

Value

  • TRUEIf the type attribute is ray.
  • FALSEIf the type is not ray.

See Also

parray

Examples

Run this code
para <- vec2par(c(.9252, .1636, .7),type='ray')
if(is.ray(para)) {
  Q <- quaray(0.5,para)
}

Run the code above in your browser using DataLab