Enum Function
- java.lang.Object
-
- java.lang.Enum<Function>
-
- com.yahoo.searchlib.rankingexpression.rule.Function
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
arity()
Returns the number of arguments this function takesabstract double
evaluate(double x, double y)
Perform the function on the inputstatic Function
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Function[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
abs
public static final Function abs
-
acos
public static final Function acos
-
asin
public static final Function asin
-
atan
public static final Function atan
-
ceil
public static final Function ceil
-
cos
public static final Function cos
-
cosh
public static final Function cosh
-
elu
public static final Function elu
-
exp
public static final Function exp
-
fabs
public static final Function fabs
-
floor
public static final Function floor
-
isNan
public static final Function isNan
-
log
public static final Function log
-
log10
public static final Function log10
-
relu
public static final Function relu
-
round
public static final Function round
-
sigmoid
public static final Function sigmoid
-
sign
public static final Function sign
-
sin
public static final Function sin
-
sinh
public static final Function sinh
-
square
public static final Function square
-
sqrt
public static final Function sqrt
-
tan
public static final Function tan
-
tanh
public static final Function tanh
-
erf
public static final Function erf
-
atan2
public static final Function atan2
-
fmod
public static final Function fmod
-
ldexp
public static final Function ldexp
-
max
public static final Function max
-
min
public static final Function min
-
pow
public static final Function pow
-
-
Method Detail
-
values
public static Function[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Function c : Function.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Function valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
evaluate
public abstract double evaluate(double x, double y)
Perform the function on the input
-
arity
public int arity()
Returns the number of arguments this function takes
-
-