package commons.math.formulas;
import basics.utl.NumUtl;
public class TFIDFSquare implements Formula
{

/**
 * Implements a term weighting formula: Args: tf, idf
 */
public double calculate (double... arg)
{
   return NumUtl.log2(1 + (arg[0] * arg[0])) * NumUtl.log2( 1 + (arg[1] * arg[1]));
}
}
