
Last chance! 50% off unlimited learning
Sale ends in
diffwave(wave1, wave2, f, wl = 512, envt = "hil", msmooth = NULL, ksmooth = NULL)
wave1
and wave2
(in Hz).
Does not need to be specified if wave1
and/or wave2
are/is
of class ts
, Sample
, or env
.
diffspec
and diffenv
functions.
This then gives a global (time and frequency) estimation of dissimilarity.
The frequency mean spectrum and the amplitude envelope needed for computing
respectively diffspec
and diffenv
are automatically generated.
They can be controlled through wl
, msmooth
and ksmooth
arguments respectively.
See examples below and examples in diffspec
and diffenv
for implications on the results.diffspec
, diffenv
data(tico)
data(orni)
# selection in tico to have two waves of similar duration (length)
tico<-as.matrix(tico[1:nrow(orni),1])
diffwave(tico,orni,f=22050)
# changing the frequency parameter (wl)
diffwave(tico,orni,f=22050,wl=1024)
# changing the temporal parameter (msmooth)
diffwave(tico,orni,f=22050,msmooth=c(20,0))
Run the code above in your browser using DataLab