lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r454584 - in /incubator/lucene.net/trunk/C#/src: Lucene.Net/Search/DefaultSimilarity.cs Lucene.Net/Search/Similarity.cs Lucene.Net/Search/SimilarityDelegator.cs Test/Search/TestDisjunctionMaxQuery.cs Test/Search/TestSimilarity.cs
Date Tue, 10 Oct 2006 01:42:34 GMT
Author: aroush
Date: Mon Oct  9 18:42:34 2006
New Revision: 454584

URL: http://svn.apache.org/viewvc?view=rev&rev=454584
Log:
Changed function name from Ldf to Idf

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/DefaultSimilarity.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Similarity.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/SimilarityDelegator.cs
    incubator/lucene.net/trunk/C#/src/Test/Search/TestDisjunctionMaxQuery.cs
    incubator/lucene.net/trunk/C#/src/Test/Search/TestSimilarity.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/DefaultSimilarity.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/DefaultSimilarity.cs?view=diff&rev=454584&r1=454583&r2=454584
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/DefaultSimilarity.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/DefaultSimilarity.cs Mon Oct  9 18:42:34
2006
@@ -48,7 +48,7 @@
 		}
 		
 		/// <summary>Implemented as <code>log(numDocs/(docFreq+1)) + 1</code>.
</summary>
-		public override float Ldf(int docFreq, int numDocs)
+		public override float Idf(int docFreq, int numDocs)
 		{
 			return (float) (System.Math.Log(numDocs / (double) (docFreq + 1)) + 1.0);
 		}

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Similarity.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/Similarity.cs?view=diff&rev=454584&r1=454583&r2=454584
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Similarity.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Similarity.cs Mon Oct  9 18:42:34
2006
@@ -276,7 +276,7 @@
 		/// </returns>
 		public virtual float Idf(Term term, Searcher searcher)
 		{
-			return Ldf(searcher.DocFreq(term), searcher.MaxDoc());
+			return Idf(searcher.DocFreq(term), searcher.MaxDoc());
 		}
 		
 		/// <summary>Computes a score factor for a phrase.
@@ -318,7 +318,7 @@
 		/// </param>
 		/// <returns> a score factor based on the term's document frequency
 		/// </returns>
-		public abstract float Ldf(int docFreq, int numDocs);
+		public abstract float Idf(int docFreq, int numDocs);
 		
 		/// <summary>Computes a score factor based on the fraction of all query terms that
a
 		/// document contains.  This value is multiplied into scores.

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/SimilarityDelegator.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/SimilarityDelegator.cs?view=diff&rev=454584&r1=454583&r2=454584
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/SimilarityDelegator.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/SimilarityDelegator.cs Mon Oct  9
18:42:34 2006
@@ -59,9 +59,9 @@
 			return delegee.SloppyFreq(distance);
 		}
 		
-		public override float Ldf(int docFreq, int numDocs)
+		public override float Idf(int docFreq, int numDocs)
 		{
-			return delegee.Ldf(docFreq, numDocs);
+			return delegee.Idf(docFreq, numDocs);
 		}
 		
 		public override float Coord(int overlap, int maxOverlap)

Modified: incubator/lucene.net/trunk/C#/src/Test/Search/TestDisjunctionMaxQuery.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Search/TestDisjunctionMaxQuery.cs?view=diff&rev=454584&r1=454583&r2=454584
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Search/TestDisjunctionMaxQuery.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Search/TestDisjunctionMaxQuery.cs Mon Oct  9 18:42:34
2006
@@ -74,7 +74,7 @@
 			{
 				return 1.0f;
 			}
-			public override float Ldf(int docFreq, int numDocs)
+			public override float Idf(int docFreq, int numDocs)
 			{
 				return 1.0f;
 			}

Modified: incubator/lucene.net/trunk/C#/src/Test/Search/TestSimilarity.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Search/TestSimilarity.cs?view=diff&rev=454584&r1=454583&r2=454584
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Search/TestSimilarity.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Search/TestSimilarity.cs Mon Oct  9 18:42:34 2006
@@ -163,7 +163,7 @@
 			{
 				return 1.0f;
 			}
-			public override float Ldf(int docFreq, int numDocs)
+			public override float Idf(int docFreq, int numDocs)
 			{
 				return 1.0f;
 			}



Mime
View raw message