public class NormalizationZ extends Normalization
Normalization.NoNormalization| Constructor and Description |
|---|
NormalizationZ()
Calls
NormalizationZ(0.3) |
NormalizationZ(float z)
Creates NormalizationZ with the supplied parameter
z. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
explainpublic NormalizationZ()
NormalizationZ(0.3)public NormalizationZ(float z)
z.z - represents A/(A+1) where A
measures the specificity of the language.public float tfn(BasicStats stats, float tf, float len)
Normalizationtfn in class Normalizationlen - the field length.public String toString()
NormalizationtoString in class Normalizationpublic float getZ()
zNormalizationZ(float)Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.