Learn R Programming

IsingSampler (version 0.5.0)

IsingEntropy: Entropy of the Ising Model

Description

Returns (marginal/conditional) Shannon entropy of the Ising model.

Usage

IsingEntropy(graph, thresholds, beta = 1, conditional = numeric(0),
          marginalize = numeric(0), base = 2, responses = c(0L, 1L),
          delta = 0)

Arguments

graph

Weights matrix

thresholds

Thresholds vector

beta

Inverse temperature

conditional

Indices of nodes to condition on

marginalize

Indices of nodes to marginalize over

base

Base of the logarithm

responses

Vector of outcome responses.

delta

Optional per-node quadratic (Blume-Capel) term added to the Hamiltonian as delta_i * s_i^2; a single value (recycled over nodes) or one value per node. The default 0 corresponds to the ordinary Ising model. See BlumeCapelSampler.

Author

Sacha Epskamp <mail@sachaepskamp.com>