|
|||||||||
| 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.NormalizationZ
public class NormalizationZ
Pareto-Zipf Normalization
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.lucene.search.similarities.Normalization |
|---|
Normalization.NoNormalization |
| Constructor Summary | |
|---|---|
NormalizationZ()
Calls NormalizationZ(0.3) |
|
NormalizationZ(float z)
Creates NormalizationZ with the supplied parameter z. |
|
| Method Summary | |
|---|---|
float |
getZ()
Returns the parameter z |
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 org.apache.lucene.search.similarities.Normalization |
|---|
explain |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NormalizationZ()
NormalizationZ(0.3)
public NormalizationZ(float z)
z.
z - represents A/(A+1) where A
measures the specificity of the language.| Method Detail |
|---|
public float tfn(BasicStats stats,
float tf,
float len)
Normalization
tfn in class Normalizationlen - the field length.public String toString()
Normalization
toString in class Normalizationpublic float getZ()
z
NormalizationZ(float)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||