public final Explanation explain(BasicStats stats) {return Explanation.match(lambda(stats),getClass().getSimpleName()+ ", computed as (n + 1) / (N + 1) from:",Explanation.match(stats.getDocFreq(),"n, number of documents containing term"),Explanation.match(stats.getNumberOfDocuments(),"N, total number of documents with field"));}
public override sealed Explanation Explain(BasicStats stats){Explanation result = new Explanation();result.Description = this.GetType().Name + ", computed from: ";result.Value = CalculateLambda(stats);result.AddDetail(new Explanation(stats.DocFreq, "docFreq"));result.AddDetail(new Explanation(stats.NumberOfDocuments, "numberOfDocuments"));return result;}