This function returns the likelihood of a single possible state. Is only tractible up to rougly 10 nodes.
IsingStateProb(s, graph, thresholds, beta, responses = c(0L, 1L))
Vector contaning the state to evaluate.
Square matrix indicating the weights of the network. Must be symmetrical with 0 as diagonal.
Vector indicating the thresholds, also known as the external field.
Scalar indicating the inverse temperature.
Response options. Typically set to c(-1L, 1L)
or c(0L, 1L)
(default). Must be integers!
Sacha Epskamp (mail@sachaepskamp.com)