exchange: Exchange states from a population.

Description Usage Arguments Value Author(s)

View source: R/proposals.R

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 14, 2017, 2:05 p.m.