AdaptiveNormalizer2 | R Documentation |
R6 class that implements our adaptation to one-pass online processing of the adaptive
normalization method proposed by Gupta and Hewett. A sliding window of past w
data values
are maintained and the percentage change in mean values between the current and previous window
is used to determine if the new or old min-max values should be used to normalize the current
window. If the percentage change value exceeds the threshold, then old min-max values are
replaced by the new ones.
new()
Create a new AdaptiveNormalizalizer object.
AdaptiveNormalizer2$new(wl, threshold = 0.25, returnPoint = F)
wl
Length of the window with historical data values.
threshold
Dissimilarity factor between the previous and current windows mean to calculate new min and max values.
returnPoint
If FALSE
then normalized current window is returned, else,
the normalized current data point is returned.
A new 'AdaptiveNormalizer2' object.
normalize()
Normalizes the current data value.
AdaptiveNormalizer2$normalize(x)
x
Current 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.
AdaptiveNormalizer2$denormalize(y)
y
Current data value to be denormalized.
Denormalized current data point.
V. Gupta, R. Hewett, Adaptive Normalization in Streaming Data, in:Proceedings of the 2019 3rd International Conference on Big Data Re-search, ACM, New York, NY, USA, 2019, pp. 12-17.
normalizer <- AdaptiveNormalizer2$new(wl = 3) normalizer$normalize(10) normalizer$normalize(15) normalizer$normalize(20) normalizer$normalize(10) normalizer$normalize(30) normalizer$normalize(15) normalizer$denormalize(0.25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.