If plot is FALSE, covspectro returns a list containing
three components:
covthe successive covariance values between wave1 and wave2.
covmaxthe maximum covariance between wave1 and wave2.
tthe time offset corresponding to cov.
Details
Successive covariances between the spectrogram of wave1 and
the spectrogram of wave2 are computed when regularly sliding
forward and backward wave2 along wave1.
The maximal covariance is obtained at a particular shift (time offset).
This shift may be positive or negative.
n sets in how many steps wave2 will be slided along wave1.
Time process can be then decreased by setting low n value.
Inverting wave1 and wave2 may give slight different results.
References
Hopp, S. L., Owren, M. J. and Evans, C. S. (Eds) 1998. Animal acoustic
communication. Springer, Berlin, Heidelberg.
# covariance between two notes of a birdsongdata(tico)
note1<-cutw(tico, f=22050, from=0.5, to=0.9)
note2<-cutw(tico, f=22050, from=0.9, to=1.3)
covspectro(note1,note2,f=22050,n=37)