public class PowDoubleFunction extends DualDoubleFunction
PowDoubleFunction returns 'a' raised to the power of 'b'.| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
a, b| Constructor and Description |
|---|
PowDoubleFunction(ValueSource a,
ValueSource b) |
| Modifier and Type | Method and Description |
|---|---|
protected double |
func(int doc,
FunctionValues aVals,
FunctionValues bVals) |
protected String |
name() |
createWeight, description, equals, getValues, hashCodegetSortField, newContext, toStringpublic static final String NAME
public PowDoubleFunction(ValueSource a, ValueSource b)
a - the base.b - the exponent.protected String name()
name in class DualDoubleFunctionprotected double func(int doc,
FunctionValues aVals,
FunctionValues bVals)
func in class DualDoubleFunctionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.