calc idf with entropy