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.
|
explain
public 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)
Normalization
tfn
in class Normalization
len
- the field length.public String toString()
Normalization
toString
in class Normalization
public float getZ()
z
NormalizationZ(float)
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.