R/standardize.r

Defines functions standardize

standardize = function(x){
  if (length(unique(x)) == 1) return(rep(0, length(x)))
  result = x - mean(x)
  return(result / rep(mynorm(result), length(result)))
}

Try the glinternet package in your browser

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

glinternet documentation built on Sept. 5, 2021, 5:28 p.m.