Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Classes | Public Member Functions | Protected Attributes | List of all members
Lucene.Net.Spatial.Util.ReciprocalFloatFunction Class Reference

Inherits Lucene.Net.Search.Function.ValueSource.

Classes

class  FloatDocValues
 

Public Member Functions

 ReciprocalFloatFunction (ValueSource source, float m, float a, float b)
 f(source) = a/(m*float(source)+b)
 
override DocValues GetValues (IndexReader reader)
 Return the DocValues used by the function query.
 
override string Description ()
 description of field, used in explain()
 
override bool Equals (object o)
 
override int GetHashCode ()
 Needed for possible caching of query results - used by ValueSourceQuery.GetHashCode().
 
- Public Member Functions inherited from Lucene.Net.Search.Function.ValueSource
override System.String ToString ()
 
abstract override bool Equals (System.Object o)
 Needed for possible caching of query results - used by ValueSourceQuery.Equals(Object).
 

Protected Attributes

readonly ValueSource source
 
readonly float m
 
readonly float a
 
readonly float b
 

Detailed Description

Definition at line 24 of file ReciprocalFloatFunction.cs.

Constructor & Destructor Documentation

Lucene.Net.Spatial.Util.ReciprocalFloatFunction.ReciprocalFloatFunction ( ValueSource  source,
float  m,
float  a,
float  b 
)

f(source) = a/(m*float(source)+b)

Parameters
source
m
a
b

Definition at line 38 of file ReciprocalFloatFunction.cs.

Member Function Documentation

override string Lucene.Net.Spatial.Util.ReciprocalFloatFunction.Description ( )
virtual

description of field, used in explain()

Implements Lucene.Net.Search.Function.ValueSource.

Definition at line 76 of file ReciprocalFloatFunction.cs.

override bool Lucene.Net.Spatial.Util.ReciprocalFloatFunction.Equals ( object  o)

Definition at line 83 of file ReciprocalFloatFunction.cs.

override int Lucene.Net.Spatial.Util.ReciprocalFloatFunction.GetHashCode ( )
virtual

Needed for possible caching of query results - used by ValueSourceQuery.GetHashCode().

See Also
Object.GetHashCode()

Implements Lucene.Net.Search.Function.ValueSource.

Definition at line 93 of file ReciprocalFloatFunction.cs.

override DocValues Lucene.Net.Spatial.Util.ReciprocalFloatFunction.GetValues ( IndexReader  reader)
virtual

Return the DocValues used by the function query.

Parameters
readerthe IndexReader used to read these values. If any caching is involved, that caching would also be IndexReader based.

<throws> IOException for any error. </throws>

Implements Lucene.Net.Search.Function.ValueSource.

Definition at line 70 of file ReciprocalFloatFunction.cs.

Member Data Documentation

readonly float Lucene.Net.Spatial.Util.ReciprocalFloatFunction.a
protected

Definition at line 28 of file ReciprocalFloatFunction.cs.

readonly float Lucene.Net.Spatial.Util.ReciprocalFloatFunction.b
protected

Definition at line 29 of file ReciprocalFloatFunction.cs.

readonly float Lucene.Net.Spatial.Util.ReciprocalFloatFunction.m
protected

Definition at line 27 of file ReciprocalFloatFunction.cs.

readonly ValueSource Lucene.Net.Spatial.Util.ReciprocalFloatFunction.source
protected

Definition at line 26 of file ReciprocalFloatFunction.cs.


The documentation for this class was generated from the following file: