learn: Learn

Description Usage Arguments Value

View source: R/RcppExports.R

Description

An internal function that simulates learning using C++.

Usage

1
learn(rep_size, reps, locs, loc, t_x, syl_counter, num_dems, a, innov, p_att)

Arguments

rep_size

Learner repertoire size.

reps

Demonstrator repertoires.

locs

Demonstrator locations.

loc

Learner location.

t_x

Demonstrator attractiveness.

syl_counter

Syllable counter.

num_dems

Number of demonstrators.

a

Level of conformity bias.

innov

Innovation rate.

p_att

Proportion of attractive syllables.

Value

Returns a one matrix: the Simpson's diversity from each burn-in year (column) and iteration (row).


masonyoungblood/TransmissionBias documentation built on Sept. 22, 2021, 1:11 p.m.