exchange: Exchange states from a population.

Description Usage Arguments Value Author(s)

Description

A special proposal generator which interchanges two neighboring individuals from a population. Assumes that the state is a matrix, and that individuals are stored in rows. Useful for parallel tempering, etc.

Usage

1

Arguments

state

current population state.

Value

new state with two neighbors interchanged.

Author(s)

Grady Weyenberg


grady/evol-mc documentation built on May 17, 2019, 8:01 a.m.