public class DistributionSPL extends Distribution
Unlike for DFR, the natural logarithm is used, as it is faster to compute and the original paper does not express any preference to a specific base.
WARNING: this model currently returns infinite scores for very small tf values and negative scores for very large tf valuesConstructor and Description |
---|
DistributionSPL()
Sole constructor: parameter-free
|
Modifier and Type | Method and Description |
---|---|
double |
score(BasicStats stats,
double tfn,
double lambda)
Computes the score.
|
String |
toString()
Subclasses must override this method to return the name of the
distribution.
|
explain
public final double score(BasicStats stats, double tfn, double lambda)
Distribution
score
in class Distribution
public String toString()
Distribution
toString
in class Distribution
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.