lempinen.neatseeker.ir
Class HitCountWeighter

java.lang.Object
  |
  +--lempinen.neatseeker.core.AbstractWeighter
        |
        +--lempinen.neatseeker.ir.HitCountWeighter
All Implemented Interfaces:
java.util.Comparator, Weighter

public class HitCountWeighter
extends AbstractWeighter

Provides a simple implementation of a hit count based weighter.

Version:
$Id: HitCountWeighter.java,v 1.1 2000/09/25 20:27:06 lempinen Exp $
Author:
Sami Lempinen

Fields inherited from class lempinen.neatseeker.core.AbstractWeighter
documentCount, repository, resultCount, wordCount
 
Constructor Summary
HitCountWeighter()
           
 
Method Summary
 float calculateWeight(Pointer p)
          Calculates the weight of a Pointer using the wdf (within-document freq)
 java.lang.String toString()
          Returns a textual identification of this Weighter.
 
Methods inherited from class lempinen.neatseeker.core.AbstractWeighter
compare, init, setResultCount
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

HitCountWeighter

public HitCountWeighter()
Method Detail

calculateWeight

public float calculateWeight(Pointer p)
Calculates the weight of a Pointer using the wdf (within-document freq)

toString

public java.lang.String toString()
Description copied from interface: Weighter
Returns a textual identification of this Weighter.
Overrides:
toString in class java.lang.Object