R/get_normalized_values.R

Defines functions get_normalized_values

Documented in get_normalized_values

#' Get normalized Values based on best-working transformation (box-cox is one of them)
#' @param x vector containing values
#' @param out_of_sample Boolean indicating whether out-of-sample distance from theoretical and actual distribution should be used for evalutaion. Decreases Performance significantly.
#' @return Vector of normalized Values
#' @export
get_normalized_values <- function(x, out_of_sample = FALSE){
  library(tidyverse)
  library(bestNormalize)
  x.t <- suppressWarnings(bestNormalize::bestNormalize(
    x = x, out_of_sample = FALSE, allow_orderNorm = FALSE)$x.t
    )
}
td-berlin/anomalizer documentation built on Feb. 21, 2020, 2:03 a.m.