# SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.optimization.multivariate.unconstrained.annealing.acceptanceprobabilityfunction

## Interface TemperedAcceptanceProbabilityFunction

• ### Method Summary

All Methods
Modifier and Type Method and Description
double acceptanceProbability(Vector currentState, double energyCurrent, Vector proposedState, double energyProposed, double temperature)
Computes the probability that the next state transition will be accepted.
• ### Method Detail

• #### acceptanceProbability

double acceptanceProbability(Vector currentState,
double energyCurrent,
Vector proposedState,
double energyProposed,
double temperature)
Computes the probability that the next state transition will be accepted.
Parameters:
currentState - the current state of the system
energyCurrent - the energy in the current state
proposedState - the proposed next state of the system
energyProposed - the energy in the proposed state
temperature - the current temperature
Returns:
the acceptance probability