GenerateNovelSong: Generate Novel Song

View source: R/Source_BirdCharacteristics.R

GenerateNovelSongR Documentation

Generate Novel Song

Description

Generates one or more song templates based on parameters in P; tests of inheriting [RSize0] syllables (90%), [RSize0]*[PerROh] syllables (10%), and [RSize0]*[PerROh] syllables (1%), by random sampling. Creates a numeric vector where learned syllables are 1, and unlearned syllables are 0. It then appends 0s to the end, so the vector is of length [MaxRSize].

Usage

GenerateNovelSong(P, numTemplates)

Arguments

P

a list of parameters

numTemplates

the number of song templates to create


NeuroBio/SEM_R_Package documentation built on April 24, 2022, 5:54 p.m.