Learn R Programming

daltoolbox (version 1.1.727)

smoothing_freq: Smoothing by Freq

Description

The 'smoothing_freq' function is used to smooth a given time series data by aggregating observations within a fixed frequency.

Usage

smoothing_freq(n)

Value

returns an object of class smoothing_freq

Arguments

n

number of bins

Examples

Run this code
data(iris)
obj <- smoothing_freq(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

Run the code above in your browser using DataLab