R/is.GP.R

Defines functions is.GP

## Checks whether or not the object in question is a GP object
##
## May 8th, 2012

is.GP <- function(object) {
    inherits(x = object, what = "GP") && 
        # also trivial checks for validity
        !is.null(names(object)) &&
        all(c("X", "Y", "sig2", "beta", "delta", "nugget_threshold_parameter", 
            "correlation_param") %in% names(object))
}

Try the GPfit package in your browser

Any scripts or data that you put into this service are public.

GPfit documentation built on April 12, 2025, 5:07 p.m.