Description Usage Arguments Value Examples

View source: R/beatComplexity.R

This function computes a `beatSpectrum`

and calculates some basic measurements of its complexity.
The complexity value is calculated as the maximum identified repeating period (in seconds) divided by
the number of peaks.

1 | ```
beatComplexity(wave, plot = FALSE)
``` |

`wave` |
A Wave object |

`plot` |
If TRUE a spectrogram overlaid with the peaks is plotted. |

A list of the complexity, a vector of the peak periods, and the number of peaks.

1 2 3 4 5 | ```
## Not run:
beatComplexity(sheep)
beatComplexity(sheep, plot=TRUE)
## End(Not run)
``` |

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.