metropolis.hastings: Metropolis-Hastings algorithm

View source: R/limiting_similarity_filtering.R

metropolis.hastingsR Documentation

Metropolis-Hastings algorithm

Description

Metropolis-Hastings algorithm

Usage

metropolis.hastings(old.value, new.value, t = 0)

Arguments

old.value

is the similarity value of the starting species pool.

new.value

is the similarity value of the changed species pool.

t

is the 'temperature' of the system.

Value

boolean, if to accept the replacement or not.


emilio-berti/assembly documentation built on Aug. 16, 2022, 9:50 p.m.