Description Usage Arguments Details Value Examples
hamiltonian_ising
is used to compute the energy of given configuration in a
generalized Ising model.
1 | hamiltonian_ising(u, h, J = NULL)
|
u |
a binary (-1, 1-valued) vector or matrix. If |
h |
a vector giving the external field. |
J |
a symmetric matrix with zero diagonals giving the interaction. If
|
The generalized Ising model (also known as quadratic exponential binary distribution) is generalizing the adjacent coupling of Ising model to two-way interactions. The probability mass function of generalized Ising model is
P(u \vert h, J) = \frac{1}{Z(h, J)} e^{- H(u; h, J)},
where H(u; h, J) = - h^T u - \frac{1}{2} u^T J u is the Hamiltonian.
a vector giving the energy of configuration u
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.