View source: R/LocalBoltzmann.R
LocalBoltzmann | R Documentation |
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.
LocalBoltzmann(TheList, TransRelAdj = NA, beta = 1)
TheList |
a list containing the CIB matrix, and a "shape" vector. The output of |
TransRelAdj |
a list containing a blank transition matrix, a relative score matrix, and an adjacency matrix. The output of |
beta |
Optional parameter used to scale score values. Large beta leads to a result similar to |
A matrix describing the transition probability from each world state (rows) to each other world state (columns).
Alastair Jamieson Lane. <aja107@math.ubc.ca>
data(ExampleCIBdata)
LocalBoltzmann(ExampleCIBdata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.