nrm_memory: Memory Normalizer

View source: R/ac_norm.R

nrm_memoryR Documentation

Memory Normalizer

Description

Normalizer that keeps its own memory of the data seen so far, so that the normalization parameters are estimated over the whole history rather than over the most recent batch alone.

Usage

nrm_memory(norm_class = daltoolbox::minmax(), max_size = NULL)

Arguments

norm_class

Normalizer class

max_size

Maximum number of rows kept in the memory; the oldest rows are dropped first. NULL (the default) keeps the whole history, so set it on long streams to bound memory.

Value

Norm object

Examples

library(daltoolbox)

obj <- nrm_memory(norm_class = minmax())
obj <- fit(obj, data.frame(x = c(1, 2, 3)))
transform(obj, data.frame(x = c(1, 2, 3)))

heimdall documentation built on Dec. 2, 2026, 5:08 p.m.