Skip to main content
. Author manuscript; available in PMC: 2017 Sep 1.
Published in final edited form as: ACM BCB. 2017 Aug;2017:550–555. doi: 10.1145/3107411.3107466

Algorithm 2.

Per thread Pseudo code for Kernel 3

Require: An array A of intensities, Average Intensity Spread R and array of Intensity Spread R
Ensure: Array B containing binary spectrum of A
for each thread i do
  Ci getClass(Ai, Ri)
  Qi getTotalQuanta(Ci)
  for each ajAi do
   aj getQuantum(aj)
  end for
  qjqS ← quantaSizes(Ai)
  B ← 0
  for each qjqS do
   qj getSampleRate(qj)
   B[getSample(qj)] ← 1
  end for
end for