| WindowNormalizer | R Documentation |
R6 class allows normalizing the data set in an online manner one-by-one or chunk-by-chunk. It maintains a window with the last data values to calculate the statistical values needed for the min-max normalization or the z-score standardization.
new()Create a new WindowNormalizer object.
WindowNormalizer$new(wl, method = "z-score", returnPoint = F)
wlLength of the window with historical data values.
methodNormalization method to be used "min-max" or "z-score".
returnPointIf FALSE then normalized current window is returned, else,
normalized current data point is returned.
A new WindowNormalizer object.
normalize()Normalizes the current data value.
WindowNormalizer$normalize(x)
xCurrent data value to be normalized.
If returnPoint = FALSE then normalized current window is returned, else,
normalized current data point is returned.
denormalize()Denormalizes the current data value.
WindowNormalizer$denormalize(y)
yCurrent data value to be denormalized.
Denormalized current data point.
normalizer <- WindowNormalizer$new(wl = 3) normalizer$normalize(10) normalizer$normalize(15) normalizer$normalize(20) normalizer$normalize(10) normalizer$normalize(30) normalizer$normalize(15) normalizer$denormalize(-0.3202563)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.