Why is frequency a float number

2010-02-25 Thread PlusPlus
Hi, I was wondering why TF method gets a float parameter. Isn't frequency always considered to be integer? public abstract float tf(float freq) Best, Reza -- View this message in context: http://old.nabble.com/Why-is-frequency-a-float-number-tp27714523p27714523.html Sent fro

Re: Why is frequency a float number

2010-02-25 Thread Marek Rei
Not sure about the implementation in Lucene but term frequency is usually normalized. Wikipedia: http://en.wikipedia.org/wiki/Tf%E2%80%93idf#Mathematical_details Marek PlusPlus wrote: > Hi, > >I was wondering why TF method gets a float parameter. Isn't frequency > always considered to be int

Re: Why is frequency a float number

2010-03-04 Thread Chris Hostetter
:I was wondering why TF method gets a float parameter. Isn't frequency : always considered to be integer? : :public abstract float tf(float freq) Take a look at how PhraseQuery and SPanNearQuery use tf(float). For simple terms (and TermQuery) tf is always an integer, but when dealing

Re: Why is frequency a float number

2010-03-04 Thread PlusPlus
-- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > > -- View this message in context: http://old.nabble.com