R/norm_data.R

norm.data <- function(x, x.new, id.circ) {
    min.cov <- apply(x, 2, min)
    max.cov <- apply(x, 2, max)
    norm.x <- sapply(1:ncol(x), function(col) (x[, col] - min.cov[col])/(max.cov[col] - 
        min.cov[col]))
    norm.xnew <- sapply(1:ncol(x), function(col) (x.new[, col] - min.cov[col])/(max.cov[col] - 
        min.cov[col]))
    list(x = norm.x, x.new = norm.xnew)
}

Try the gainML package in your browser

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

gainML documentation built on June 28, 2019, 5:05 p.m.