LocalBoltzmann: LocalBoltzmann

View source: R/LocalBoltzmann.R

LocalBoltzmannR Documentation

LocalBoltzmann

Description

A Local stochastic succession rule. For all adjacent states (states where only one descriptor has changed), calculate the relative change in score (compared to staying in the current location). Take the exponential of this value to get the relative probability. Once all adjacent values have been exponentiated, we divide by the sum over all such values in order to find the transition probabilities. States mathematically, if P_{A\rightarrow B} is the transition rate from A to B, and S_A(B) is the score of the state B, from the point of view of A, then

P_{A\rightarrow B= \frac{exp[\beta S_A(B)]}}{\sum exp[\beta S_A(C)]}

Where here we sum over all states that involve changing at most one descriptor.

Usage

LocalBoltzmann(TheList, TransRelAdj = NA, beta = 1)

Arguments

TheList

a list containing the CIB matrix, and a "shape" vector. The output of InputCibBanner is an appropriate input here.

TransRelAdj

a list containing a blank transition matrix, a relative score matrix, and an adjacency matrix. The output of MakeScoreMatrix is appropriate here.

beta

Optional parameter used to scale score values. Large beta leads to a result similar to TransToMaxAdj. Low beta leads to results similar to “change descriptors at random”.

Value

A matrix describing the transition probability from each world state (rows) to each other world state (columns).

Author(s)

Alastair Jamieson Lane. <aja107@math.ubc.ca>

Examples

data(ExampleCIBdata)
LocalBoltzmann(ExampleCIBdata)

alastair-JL/StochasticCIB documentation built on July 27, 2023, 1:12 a.m.