public final class Idf extends Object implements Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
static double |
LOG_E_OF_2
Deprecated.
|
static double |
REC_LOG_2_OF_E
Deprecated.
|
Constructor and Description |
---|
Idf()
A default constructor.
|
Idf(double docs)
A constructor specifying the number of documents in the collection.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Make a perfect clone of this object
|
double |
idf(double d)
Returns the idf of d.
|
double |
idf(int d)
Returns the idf of the given number d.
|
double |
idfDFR(double d)
Returns the idf of d.
|
double |
idfDFR(int d)
Returns the idf of the given number d.
|
double |
idfENQUIRY(double d)
The INQUERY idf formula.
|
double |
idfN(double d)
Return the normalised idf of the given number.
|
double |
idfN(int d)
Return the normalised idf of the given number.
|
double |
idfNENQUIRY(double d)
The normalised INQUERY idf formula
|
static double |
log(double d)
Deprecated.
|
static double |
log(double d1,
double d2)
Deprecated.
|
static void |
main(String[] args)
main
|
void |
setNumberOfDocuments(double N)
Set number of documents
|
@Deprecated public static final double LOG_E_OF_2
@Deprecated public static final double REC_LOG_2_OF_E
public Idf()
public Idf(double docs)
docs
- The number of documents.public double idf(double d)
d
- The given term frequencypublic double idf(int d)
d
- the number for which the idf will be computed.public double idfDFR(double d)
d
- The given term frequencypublic double idfDFR(int d)
d
- the number for which the idf will be computed.public double idfENQUIRY(double d)
d
- the number for which the idf will be computedpublic double idfN(double d)
d
- The number of which the idf is computed.public void setNumberOfDocuments(double N)
N
- the number of ducumentspublic double idfN(int d)
d
- The number of which the idf is computed.public double idfNENQUIRY(double d)
d
- the number for which we will compute the normalised idfpublic static void main(String[] args)
args
- @Deprecated public static double log(double d)
d
- The number of which the log we will compute@Deprecated public static double log(double d1, double d2)
d1
- the numeratord2
- the denominatorTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow