R/show.km.R

Defines functions show.km

show.km <- function(object) {	
	cat("\n")
	cat("Call:\n")
	print(object@call)
	
	p <- length(object@trend.coef)
	trend.coef <- matrix(object@trend.coef, p, 1)
	trend.coef <- t(formatC(trend.coef, width=10, digits=4, format="f", flag=" "))
	trend.names <- formatC(colnames(object@F), width=12)
	
	if ((identical(object@known.param, "Trend")) | (identical(object@known.param, "All"))) {
		dimnames(trend.coef) <- list("", trend.names)
	} else {
		dimnames(trend.coef) <- list("  Estimate", trend.names)
	}
	cat("\n")
	cat("Trend  coeff.:\n")
	print(t(trend.coef), quote=FALSE) 
	
	show(object@covariance)

}

Try the DiceKriging package in your browser

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

DiceKriging documentation built on Feb. 24, 2021, 1:07 a.m.