enum Transformer extends java.lang.Enum<Transformer>
g functions
.EventFilter
,
FilterType
Enum Constant and Description |
---|
MAX
Transformer computing transformed = max(+
Precision.SAFE_MIN , -g, +g). |
MIN
Transformer computing transformed = min(-
Precision.SAFE_MIN , -g, +g). |
MINUS
Transformer computing transformed = -g.
|
PLUS
Transformer computing transformed = g.
|
UNINITIALIZED
Transformer computing transformed = 0.
|
Modifier and Type | Method and Description |
---|---|
protected abstract double |
transformed(double g)
Transform value of function g.
|
static Transformer |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Transformer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Transformer UNINITIALIZED
This transformer is used when we initialize the filter, until we get at least one non-zero value to select the proper transformer.
public static final Transformer PLUS
When this transformer is applied, the roots of the original function
are preserved, with the same increasing/decreasing
status.
public static final Transformer MINUS
When this transformer is applied, the roots of the original function
are preserved, with reversed increasing/decreasing
status.
public static final Transformer MIN
Precision.SAFE_MIN
, -g, +g).
When this transformer is applied, the transformed function is guaranteed to be always strictly negative (i.e. there are no roots).
public static final Transformer MAX
Precision.SAFE_MIN
, -g, +g).
When this transformer is applied, the transformed function is guaranteed to be always strictly positive (i.e. there are no roots).
public static Transformer[] values()
for (Transformer c : Transformer.values()) System.out.println(c);
public static Transformer 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 nullprotected abstract double transformed(double g)
g
- raw value of function gCopyright (c) 2003-2014 Apache Software Foundation