Learn R Programming

kza (version 3.2.0)

kzsv: Kolmogorov-Zurbenko Adaptive filter with Sample Variance.

Description

Sample variance of a Kolmogorov-Zurbenko adaptive filter. You want a sigma of at least 3.

Usage

kzsv(object)
## S3 method for class 'kzsv':
summary(object, digits=getOption("digits"), ...)
## S3 method for class 'kzsv':
plot(x, \dots)

Arguments

object
The resultant object from kza function.
x
The results of the kza function.
digits
Precision of output.
...
Other parameters.

Examples

Run this code
x <- c(rep(0,4000),rep(0.5,2000),rep(0,4000))
noise <- rnorm(n = 10000, sd = 1.0) # normally-distributed random variates
v <- x + noise
a<-kza(v, m=1000, k=3)
sv<-kzsv(a)

Run the code above in your browser using DataLab