Algorithm 2.
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 aj ∈ Ai do |
aj ← getQuantum(aj) |
end for |
qj ∈ qS ← quantaSizes(Ai) |
B ← 0 |
for each qj ∈ qS do |
qj ← getSampleRate(qj) |
B[getSample(qj)] ← 1 |
end for |
end for |