Simple Bayes v0.7.1 SimpleBayes.TfIdf

Summary

Functions

call(tf, numerator, denominator)

Calculates the TF-IDF.

Examples

iex> SimpleBayes.TfIdf.call(2, 0, 1)
2

iex> SimpleBayes.TfIdf.call(2, 1, 0)
2

iex> SimpleBayes.TfIdf.call(2, 1, 1)
2

iex> SimpleBayes.TfIdf.call(2, 2, 1)
0.6020599913279624