windowing: Windowing Function for Wave Objects

Description Usage Arguments Examples

View source: R/windowing.R

Description

Separates a Wave object into windows of a defined length and runs a function on the window section. Windows may overlap, and the function can make use of 'parallel' package for multicore processing.

Usage

1
2
3
4
5
6
7
8
9
windowing(
  wave,
  window.length,
  window.overlap = 0,
  bind.wave = TRUE,
  FUN,
  ...,
  cluster = NULL
)

Arguments

wave

A Wave object

window.length

The lag used to create the A-matrix

window.overlap

A matrix used to code the Duration-Shape pairs

bind.wave

If TRUE and FUN returns wave objects these are combined into a single object

FUN

If TRUE plots the workings of the coding algorithm

...

Additional parameters to FUN

cluster

A cluster form the 'parallel' package for multicore computation

Examples

1
2
3
4
## Not run: 
windowing(wave, window.length=1000, window.overlap=0, bind.wave=TRUE, FUN=noChange)

## End(Not run)

sonicscrewdriver documentation built on May 2, 2021, 5:06 p.m.