public class MetropolisAcceptanceProbabilityFunction extends Object implements TemperedAcceptanceProbabilityFunction
The reference has it: \(\pi_t(\mathbf{x}) = exp(-h(\mathbf{x})/T_t))\) This is the default acceptance probability function for 'normal' annealing.f(currentState) = currentEnergy f(previousState) = previousEnergy exp(-f(proposedState) / temperature) = exp(-proposedEnergy / temperature)
Constructor and Description |
---|
MetropolisAcceptanceProbabilityFunction() |
Modifier and Type | Method and Description |
---|---|
double |
acceptanceProbability(Vector currentState,
double currentEnergy,
Vector proposedState,
double proposedEnergy,
double temperature)
Computes the probability that the next state transition will be accepted.
|
public MetropolisAcceptanceProbabilityFunction()
public double acceptanceProbability(Vector currentState, double currentEnergy, Vector proposedState, double proposedEnergy, double temperature)
TemperedAcceptanceProbabilityFunction
acceptanceProbability
in interface TemperedAcceptanceProbabilityFunction
currentState
- the current state of the systemcurrentEnergy
- the energy in the current stateproposedState
- the proposed next state of the systemproposedEnergy
- the energy in the proposed statetemperature
- the current temperatureCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.