Equation 1.
The algorithm.