float(freq[char])/celkem))
# Index koincidence
-# TODO verze s mezerami
-analyza.append("\nIndexy koincidence (vzdy bez mezer):")
-analyza.append(koincidence.tabulka_indexu(zprava))
+if mod_m:
+ analyza.append("\nIndex koincidence (s mezerami):")
+ analyza.append('{0:.2%}'.format(koincidence.index_koincidence(zprava)))
+if mod_x:
+ analyza.append("\nIndexy koincidence (bez mezer):")
+ analyza.append(koincidence.tabulka_indexu(zprava))
# Jakobsen
if mod_m: