1.begin:
2. For each category:
3.![]()
4. For each termin
:
5. Ifthen:
6.![]()
7. end if
8.![]()
9. end foreach
10.![]()
10. end foreach
11.end
Come si vede l'algoritmo calcola, per ogni categoria, la media delle funzioni
Gaussiane dei termini i cui
e
superano il valore di due
fissati thresholds, rispettivamente ThreshP e ThreshE. Il
costo computazionale di questo algoritmo è
.