wigglePars: Wiggle parameters

View source: R/matchPars.R

wiggleParsR Documentation

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

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
)

soundgen documentation built on Sept. 12, 2024, 6:29 a.m.