View source: R/trans_smoothing_inter.R
smoothing_inter | R Documentation |
The "smoothing by interval" function is used to apply a smoothing technique to a vector or time series data using a moving window approach.
smoothing_inter(n)
n |
number of bins |
returns an object of class smoothing_inter
data(iris)
obj <- smoothing_inter(n = 2)
obj <- fit(obj, iris$Sepal.Length)
sl.bi <- transform(obj, iris$Sepal.Length)
table(sl.bi)
obj$interval
entro <- evaluate(obj, as.factor(names(sl.bi)), iris$Species)
entro$entropy
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.