summary.GauPro: if (F) # Plot is automatically dispatched, same with print...

View source: R/GauPro_S3.R

summary.GauProR Documentation

if (F) # Plot is automatically dispatched, same with print and format #' Plot for class GauPro #' #' @param x Object of class GauPro #' @param ... Additional parameters #' #' @return Nothing #' @export #' #' @examples #' n <- 12 #' x <- matrix(seq(0,1,length.out = n), ncol=1) #' y <- sin(2*pi*x) + rnorm(n,0,1e-1) #' gp <- GauPro(X=x, Z=y, parallel=FALSE) #' if (requireNamespace("MASS", quietly = TRUE)) #' plot(gp) #' #' plot.GauPro <- function(x, ...) x$plot(...) # if (x$D == 1) # x$cool1Dplot(...) # else if (x$D == 2) # x$plot2D(...) # else # # stop("No plot method for higher than 2 dimension") # x$plotmarginal() # Summary for GauPro object

Description

if (F) # Plot is automatically dispatched, same with print and format #' Plot for class GauPro #' #' @param x Object of class GauPro #' @param ... Additional parameters #' #' @return Nothing #' @export #' #' @examples #' n <- 12 #' x <- matrix(seq(0,1,length.out = n), ncol=1) #' y <- sin(2*pi*x) + rnorm(n,0,1e-1) #' gp <- GauPro(X=x, Z=y, parallel=FALSE) #' if (requireNamespace("MASS", quietly = TRUE)) #' plot(gp) #' #' plot.GauPro <- function(x, ...) x$plot(...) # if (x$D == 1) # x$cool1Dplot(...) # else if (x$D == 2) # x$plot2D(...) # else # # stop("No plot method for higher than 2 dimension") # x$plotmarginal() # Summary for GauPro object

Usage

## S3 method for class 'GauPro'
summary(object, ...)

Arguments

object

GauPro R6 object

...

Additional arguments passed to summary

Value

Summary


GauPro documentation built on April 11, 2023, 6:06 p.m.