heat: Heat a target distribution.

Description Usage Arguments Value Author(s)

Description

Takes a target density function and returns a new function which will evaluate each row of a state matrix at the corresponding temperature.

Usage

1
  heat(fn, temps = 1, beta = 1/temps)

Arguments

fn

target density function

temps

temperature ladder, should probably include a 1.0 somewhere.

beta

inverse-temperatures. an alternative way to specify the temperatures, defaults to 1/temps.

Value

a function(state) which applies fn(state[i,])^beta[i] to each row i of the state

Author(s)

Grady Weyenberg


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