MulticanonicalState#
- class graph_tool.inference.MulticanonicalState(state, S_min, S_max, nbins=1000)[source]#
Bases:
objectThe density of states of a multicanonical Monte Carlo algorithm. It is used by
graph_tool.inference.multicanonical_equilibrate().- Parameters:
- state
BlockStateorOverlapBlockStateorNestedBlockState Block state to be used.
- S_min
float Minimum energy.
- S_max
float Maximum energy.
- nbins
int(optional, default:1000) Number of bins.
- state
Methods
Get allowed energy bounds.
get_bin(S)get_density([B])Get density of states, normalized so that total sum is \(B^N\), where \(B\) is the number of groups, and \(N\) is the number of nodes.
Get energy bounds.
get_entropy(S[, B])get_flatness([h, allow_gaps])Get energy histogram flatness.
get_hist()Get energy histogram.
Get permanent energy histogram.
get_posterior([N])Get posterior probability.
Get energy range.
Reset energy histogram.
sweep(**kwargs)