|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.search.similarities.Normalization
org.apache.lucene.search.similarities.Normalization.NoNormalization
public static final class Normalization.NoNormalization
Implementation used when there is no normalization.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.lucene.search.similarities.Normalization |
---|
Normalization.NoNormalization |
Constructor Summary | |
---|---|
Normalization.NoNormalization()
Sole constructor: parameter-free |
Method Summary | |
---|---|
Explanation |
explain(BasicStats stats,
float tf,
float len)
Returns an explanation for the normalized term frequency. |
float |
tfn(BasicStats stats,
float tf,
float len)
Returns the normalized term frequency. |
String |
toString()
Subclasses must override this method to return the code of the normalization formula. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Normalization.NoNormalization()
Method Detail |
---|
public final float tfn(BasicStats stats, float tf, float len)
Normalization
tfn
in class Normalization
len
- the field length.public final Explanation explain(BasicStats stats, float tf, float len)
Normalization
The default normalization methods use the field length of the document and the average field length to compute the normalized term frequency. This method provides a generic explanation for such methods. Subclasses that use other statistics must override this method.
explain
in class Normalization
public String toString()
Normalization
toString
in class Normalization
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |