public static enum FieldValueFactorFunction.Modifier extends java.lang.Enum<FieldValueFactorFunction.Modifier> implements Writeable
Writeable.Reader<V>, Writeable.Writer<V>
Enum Constant and Description |
---|
LN |
LN1P |
LN2P |
LOG |
LOG1P |
LOG2P |
NONE |
RECIPROCAL |
SQRT |
SQUARE |
Modifier and Type | Method and Description |
---|---|
abstract double |
apply(double n) |
static FieldValueFactorFunction.Modifier |
fromString(java.lang.String modifier) |
static FieldValueFactorFunction.Modifier |
readFromStream(StreamInput in) |
java.lang.String |
toString() |
static FieldValueFactorFunction.Modifier |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FieldValueFactorFunction.Modifier[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
public static final FieldValueFactorFunction.Modifier NONE
public static final FieldValueFactorFunction.Modifier LOG
public static final FieldValueFactorFunction.Modifier LOG1P
public static final FieldValueFactorFunction.Modifier LOG2P
public static final FieldValueFactorFunction.Modifier LN
public static final FieldValueFactorFunction.Modifier LN1P
public static final FieldValueFactorFunction.Modifier LN2P
public static final FieldValueFactorFunction.Modifier SQUARE
public static final FieldValueFactorFunction.Modifier SQRT
public static final FieldValueFactorFunction.Modifier RECIPROCAL
public static FieldValueFactorFunction.Modifier[] values()
for (FieldValueFactorFunction.Modifier c : FieldValueFactorFunction.Modifier.values()) System.out.println(c);
public static FieldValueFactorFunction.Modifier valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract double apply(double n)
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public static FieldValueFactorFunction.Modifier readFromStream(StreamInput in) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Enum<FieldValueFactorFunction.Modifier>
public static FieldValueFactorFunction.Modifier fromString(java.lang.String modifier)