coh(wave1, wave2, f, plot =TRUE, xlab = "Frequency (kHz)",
ylab = "Coherence", xlim = c(0,f/2000), type = "l",...)Sample object generated loading a wav
file with loadSample (package Sample object generated loading a wav
file with loadSample (package wave1 and wave1 (in Hz).
Does not need to be specified if wave1 and/or wave2 are/is (a)
Sample object(s).TRUE plots the continuous coherence function
(by default TRUE).plot is TRUE, type of plot that should be drawn.
See plot for details (by default "l" for lines).plot graphical parameters.plot is FALSE, this function returns a one-column matrix
corresponding to the coherence.ccoh, spectro, spec.pgram.wave1<-synth(d=1,f=4000,cf=500)
wave2<-synth(d=1,f=4000,cf=800)
ccoh(wave1,wave2,f=4000)Run the code above in your browser using DataLab