znorm: Z-normalizes a time series by subtracting its mean and...

Description Usage Arguments References Examples

View source: R/RcppExports.R

Description

Z-normalizes a time series by subtracting its mean and dividing by the standard deviation.

Usage

1
znorm(ts, threshold = 0.01)

Arguments

ts

the input time series.

threshold

the z-normalization threshold value, if the input time series' standard deviation will be found less than this value, the procedure will not be applied, so the "under-threshold-noise" would not get amplified.

References

Dina Goldin and Paris Kanellakis, On similarity queries for time-series data: Constraint specification and implementation. In Principles and Practice of Constraint Programming (CP 1995), pages 137-153. (1995)

Examples

1
2
3
4
x = seq(0, pi*4, 0.02)
y = sin(x) * 5 + rnorm(length(x))
plot(x, y, type="l", col="blue")
lines(x, znorm(y, 0.01), type="l", col="red")

Example output

Loading required package: Rcpp

jmotif documentation built on March 26, 2020, 7:23 p.m.