Learn R Programming

lmomco (version 0.88)

check.fs: Check Vector of Nonexceedance Probabilities

Description

This function checks that a nonexceedance probability ($F$) is in the $0 \le F \le 1$ range. It does not check that the distribution whether the function as specified by current parameters if valid for $F = 0$ or $F = 1$. End point checking is left to additional internal checks within the functions implementing the distribution. The function is intended for internal use within this library to build logic flow throughout the distribution functions. Users are not expected to need this function themselves. The check.fs function is separate because of the heavy use of the logic across a myriad of functions in this package.

Usage

check.fs(fs)

Arguments

fs
A vector of nonexceedance probablity values.

Value

  • TRUEThe nonexceedance probabilities are valid.
  • FALSEThe nonexceedance probabilities are invalid.

See Also

quacau, quaexp, quagam, quagev, quagld, quaglo, quagno, quagpa, quagum, quakap, quanor, quape3, quawak, and quawei

Examples

Run this code
F <- c(0.5,0.7,0.9,1.1)
if(check.fs(F) == FALSE) cat("Bad nonexceedances 0<F<1
")

Run the code above in your browser using DataLab