R/smooth.R

Defines functions smooth

Documented in smooth

#' Smooth
#' 
#' Smooth a General regression neural network.
#' 
#' @param nn A trained General regression neural network.
#' @param sigma A scalar.
#' @seealso \code{\link{grnn-package}}
#' @export
smooth <- function(nn, sigma) {
    if(!missing(sigma)) {
        nn$sigma <- sigma
        return(nn)
    }
    stop()
}

Try the grnn package in your browser

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

grnn documentation built on May 1, 2019, 10:51 p.m.