Learn R Programming

dRiftDM (version 0.3.1)

crossover: Perform Crossover Between Chains

Description

This function dispatches to either full_crossover() or migration_crossover() depending on the which argument.

Usage

crossover(which, ...)

Value

A list with the following components:

  • new_prms_across_chains: The updated parameter matrix of shape p × n.

  • new_pis_across_chains: The updated vector of log-posterior values.

  • new_log_likes_across_chains: The updated vector of log-likelihood values.

Arguments

which

character string, Either "diff" or "migration".

...

Further arguments passed to the underlying crossover function.