soundgen (version 1.5.0)

wigglePars: Wiggle parameters

Description

Internal soundgen function

Usage

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

Run this code
# NOT RUN {
soundgen:::wigglePars(
  parList = list(
    sylLen = 250,
    pitch = data.frame(time = c(0, 1), value = c(200, 300))
  ),
  parsToWiggle = c('sylLen', 'pitch'),
  probMutation = .75,
  stepVariance = .5
)
# }

Run the code above in your browser using DataLab