idf

Function that takes a Term-Document map; computes IDFs.

Usage no npm install needed!

<script type="module">
  import idf from 'https://cdn.skypack.dev/idf';
</script>

README

This module computes a hashtable of inverse document frequencies, when inputted term frequencies. THIS MODULE IS NO LONGER BEING MAINTAINED. The code here has been integrated into the NPM module Retrieval. Please use that module instead. It is more mature and better tested.