TeX source:
D(S,c)={\frac {1}{|S|}}\sum _{f_{i}\in S}I(f_{i};c)