R/isbounded.R

Defines functions isUnbounded.gell isUnbounded isFlat.gell isFlat isFat.gell isFat isBounded.gell isBounded

Documented in isBounded isBounded.gell isFat isFat.gell isFlat isFlat.gell isUnbounded isUnbounded.gell

#' @name isBounded 
#' @aliases isBounded isBounded.gell isFat isFat.gell isFlat isFlat.gell isUnbounded isUnbounded.gell
#' @title Tests for Classes of Generalized Ellipsoids
#' 
#' @description  These functions provide tests for classes of generalized ellipsoids in the
#' (U, D) representation, based on the numbers of positive, zero and infinite
#' singular values in D.
#' 
#' They are included here mainly as computational definitions of the terms
#' \sQuote{bounded} for an ellipsoid with finite extent, 
#' \sQuote{fat}, for a bounded ellipsoid with non-empty interior, 
#' \sQuote{flat}, for degenerate (singular) ellipsoids 
#' in \eqn{R^p} with empty interior.
#' 
#'
#' @param x A class \code{"gell"} object
#' @param   \dots Other arguments, not used.
#' @return  TRUE or FALSE
#' @author Georges Monette
#' @seealso \code{\link{signature}}
#' @references Friendly, M., Monette, G. and Fox, J. (2013). Elliptical
#' Insights: Understanding Statistical Methods through Elliptical Geometry.
#' \emph{Statistical Science}, \bold{28}(1), 1-39.
#' @keywords logic 
#' @examples
#' 
#' # None yet
#' 
#' @export
isBounded <-
function(x,...) UseMethod('isBounded')

#' @rdname isBounded
#' @exportS3Method isBounded gell
isBounded.gell <- function(x,...) all( is.finite(x$d))

#  @method isFat gell
#  @method isFlat gell
#  @method isUnbounded gell

#' @rdname isBounded
#' @export
isFat <- function(x,...) UseMethod('isFat')

#' @rdname isBounded
#' @exportS3Method isFat gell
isFat.gell <- function(x,...) all( x$d > 0)

#' @rdname isBounded
#' @export
isFlat <- function(x,...) UseMethod('isFlat')

#' @rdname isBounded
#' @exportS3Method isFlat gell
isFlat.gell <- function(x,...) !isFat(x,...)


#' @rdname isBounded
#' @export
isUnbounded <- function(x,...) UseMethod('isUnbounded')


#' @rdname isBounded
#' @exportS3Method isUnbounded gell
isUnbounded.gell <- function(x,...) !isBounded(x,...)
friendly/gellipsoid documentation built on Nov. 15, 2024, 1:16 p.m.