Class DivSingleFunction
Function to divide "a" by "b"
NOTE: This was DivFloatFunction in LuceneInherited Members
Namespace: Lucene.Net.Queries.Function.ValueSources
Assembly: Lucene.Net.Queries.dll
Syntax
public class DivSingleFunction : DualSingleFunction
Constructors
DivSingleFunction(ValueSource, ValueSource)
Function to divide "a" by "b"
NOTE: This was DivFloatFunction in LuceneDeclaration
public DivSingleFunction(ValueSource a, ValueSource b)
Parameters
Type | Name | Description |
---|---|---|
ValueSource | a | the numerator. |
ValueSource | b | the denominator. |
Properties
Name
Function to divide "a" by "b"
NOTE: This was DivFloatFunction in LuceneDeclaration
protected override string Name { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
Func(int, FunctionValues, FunctionValues)
Function to divide "a" by "b"
NOTE: This was DivFloatFunction in LuceneDeclaration
protected override float Func(int doc, FunctionValues aVals, FunctionValues bVals)
Parameters
Type | Name | Description |
---|---|---|
int | doc | |
FunctionValues | aVals | |
FunctionValues | bVals |
Returns
Type | Description |
---|---|
float |