Simple Bayes v1.0.0 SimpleBayes.TfIdf

Link to this section Summary

Link to this section Functions

Link to this function 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