public void testLMJelinekMercer() throws IOException {
  float p=(1 - 0.1f) * FREQ / DOC_LEN + 0.1f * (TOTAL_TERM_FREQ + 1) / (NUMBER_OF_FIELD_TOKENS + 1.0f);
  float gold=(float)(Math.log(p / (0.1f * (TOTAL_TERM_FREQ + 1) / (NUMBER_OF_FIELD_TOKENS + 1.0f))));
  correctnessTestCore(new LMJelinekMercerSimilarity(0.1f),gold);
}

public void testLMJelinekMercer ( ) throws IOException { float p = ( 1 - 0.1f ) * FREQ / DOC_LEN + 0.1f * ( TOTAL_TERM_FREQ + 1 ) / ( NUMBER_OF_FIELD_TOKENS + 1.0f ) ; float gold = ( float ) ( Math . log ( p / ( 0.1f * ( TOTAL_TERM_FREQ + 1 ) / ( NUMBER_OF_FIELD_TOKENS + 1.0f ) ) ) ) ; correctnessTestCore ( new LMJelinekMercerSimilarity ( 0.1f ) , gold ) ; }
correctness test for the jelinek - mercer lm model .
