LeakyIntegration: Leaky Integration

Description Usage Arguments Details Value Author(s) Examples

View source: R/LeakyIntegration.R

Description

Calculates leaky integration with specified half decay time.

Usage

1
LeakyIntegration(inSignal, inSampleFreq, inHalfDecayTime, inEnlargement)

Arguments

inSignal

input signal (multi-dimensional), each row representing a channel leaky integration is performed for each channel.

inSampleFreq

sample frequency of inSignal (in Hz).

inHalfDecayTime

time (in s) at which an impulse would be reduced to half its value. If empty or not specified, 0.1 is used by default.

inEnlargement

time (in s) to enlarge the input signal. If -1, 2*inHalfDecayTime is used. If empty or not specified, 0 is used by default

Details

Sample frequency of outLeakyIntegration is the same as inSampleFreq.

Value

An object of matrix class representing the leaky integration of the input signal.

Author(s)

Marc Vidal (R version). Based on the original code from Marc Leman and Koen Tanghe.

Examples

1
2
3
s <- c(SchumannKurioseGeschichte)
ANIs <- CalcANI(s, 22050)
LIs <- LeakyIntegration (ANIs$AuditoryNerveImage, ANIs$ANIFreq, 0.1, -1)

m-vidal/pv01 documentation built on Dec. 2, 2020, 1:24 a.m.