/** * Returns a concave pivot length normalized tf as described in Singhal et al., 1999. * AT&T at TREC-7. * In Proceedings of the Seventh Text REtrieval Conference (TREC-7), pages 239-252. * @param tf the term frequency to modify * @param s the slope * @param dl the document length * @param avdl the average document length in the collection * @return a concave pivot length normalized tf */ public static double tf_cornell(double tf, double s, double dl, double avdl) { return tf_pivoted(tf_concave_log(tf), s, dl, avdl); }
/** * Returns a concave pivot length normalized tf as described in Singhal et al., 1999. * AT&T at TREC-7. * In Proceedings of the Seventh Text REtrieval Conference (TREC-7), pages 239-252. * @param tf the term frequency to modify * @param s the slope * @param dl the document length * @param avdl the average document length in the collection * @return a concave pivot length normalized tf */ public static double tf_cornell(double tf, double s, double dl, double avdl) { return tf_pivoted(tf_concave_log(tf), s, dl, avdl); }