wigglePars: Wiggle parameters

Description Usage Arguments Details Examples

View source: R/matchPars.R

Description

Internal soundgen function

Usage

1
wigglePars(parList, parsToWiggle, probMutation, stepVariance)

Arguments

parList

full list of considered parameters

parsToWiggle

a list of the names of pars that might be mutated

probMutation

the probability of a parameter mutating per iteration

stepVariance

scale factor for calculating the size of mutations

Details

Helper function for matchPars. Takes a list of control parameters for soundgen and introduces some random variation in their values.

Examples

1
2
3
4
5
6
7
8
9
soundgen:::wigglePars(
  parList = list(
    sylLen = 250,
    pitchAnchors = data.frame(time = c(0, 1), value = c(200, 300))
  ),
  parsToWiggle = c('sylLen', 'pitchAnchors'),
  probMutation = .75,
  stepVariance = .5
)

tatters/soundgen_beta documentation built on May 14, 2019, 9 a.m.