R/min_max_norm.R

Defines functions min_max_norm

Documented in min_max_norm

#' Min-max normalisation
#'
#' @param x
#'
#' @return Normalisation
#' @export
min_max_norm <- function(x) {
  (x - min(x)) / (max(x) - min(x))
}
roaldarbol/sleepr documentation built on May 9, 2024, 11:30 p.m.