Skip to main content
. 2011 Dec 20;135(23):234108. doi: 10.1063/1.3668100

Algorithm: Core sdwSSA

Input:K,γ and c
1: mK ← 0
2: fork = 1 to Kdo
3:  t ← 0, xx0, w ← 1
4:  evaluate all aj(x) and calculate a0(x)
5:  evaluate all γj(πj(x)) and bj(x); calculate b0(x)
6:  whilettfdo
7:  ifxEthen
8:   mKmK + w
9:   break out of the while loop
10:  endif
11:   generate two unit-interval uniform random numbers r1 and r2
12:   τb01(x)ln(1/r1)
13:   j ← smallest integer satisfying i=1jbi(x)r2b0(x)
14:   ww×(γj(πj(x)))1×exp{(b0(x)a0(x))τ}
15:   tt + τ, xx+νj
16:   update all aj(x) and a0(x); recalculate γj(πj(x)), bj(x) and b0(x)
17:  endwhile
18: endfor
19: returnp^sdwSSA(x0,E;t)=mK/K