Description Usage Arguments Details Value Author(s) References See Also Examples

This function tests the similarity between two spectrograms by returning their maximal covariance and the time shift related to it.

1 2 3 4 5 |

`wave1` |
a first R object. |

`wave2` |
a second R object. |

`f` |
sampling frequency of |

`channel` |
channel of the R objects, by default left channel (1) for each object. |

`wl` |
length of the window for the analysis (even number of points, by default = 512). |

`wn` |
window name, see |

`n` |
number of covariances computed between |

`plot` |
logical, if |

`plotval` |
logical, if |

`method` |
a character string indicating which correlation coefficient is
to be computed ("pearson", "spearman", or "kendall")
(see |

`col` |
colour of r values. |

`colval` |
colour of r max and frequency offset values. |

`cexval` |
character size of r max and frequency offset values. |

`fontval` |
font of r max and frequency offset values. |

`xlab` |
title of the frequency axis. |

`ylab` |
title of the r axis. |

`type` |
if |

`pb` |
if |

`...` |
other |

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.

If `plot`

is `FALSE`

, `covspectro`

returns a list containing
three components:

`cov` |
the successive covariance values between |

`covmax` |
the maximum covariance between |

`t` |
the time offset corresponding to |

Jerome Sueur sueur@mnhn.fr

Hopp, S. L., Owren, M. J. and Evans, C. S. (Eds) 1998. *Animal acoustic
communication*. Springer, Berlin, Heidelberg.

`corspec`

, `corenv`

, `spectro`

,
`cor`

,

1 2 3 4 5 6 7 8 |

```
please wait...
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.