public enum OutOfBoundsPolicy extends java.lang.Enum<OutOfBoundsPolicy>
enum
s are used to as default values for
'windowed' operations, when such a window can not, as a whole, be placed over
the input values.
AbstractKernel.applyTo(double[], int)
,
BasicKernel.setOutOfBoundsPolicy(OutOfBoundsPolicy)
Enum Constant and Description |
---|
CUSTOM
Do no apply operation on OutOfBounds values, set them to a custom
value.
|
NAN
Do no apply operation on OutOfBounds values, set them to
Double.NaN |
ZERO
Do no apply operation on OutOfBounds values, set them to 0.0
|
Modifier and Type | Method and Description |
---|---|
static OutOfBoundsPolicy |
fromString(java.lang.String theOutOfBoundsPolicy)
Returns the
OutOfBoundsPolicy corresponding to the
String . |
static OutOfBoundsPolicy |
getDefaultPolicy()
The application default
OutOfBoundsPolicy . |
abstract double |
getValue()
Returns the
double corresponding to the
OutOfBoundsPolicy . |
static OutOfBoundsPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OutOfBoundsPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OutOfBoundsPolicy ZERO
public static final OutOfBoundsPolicy NAN
Double.NaN
public static final OutOfBoundsPolicy CUSTOM
WARNING: currently setting a custom value has no
effect, instead -1.0
is used, always.
public static OutOfBoundsPolicy[] values()
for (OutOfBoundsPolicy c : OutOfBoundsPolicy.values()) System.out.println(c);
public static OutOfBoundsPolicy 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 getValue()
double
corresponding to the
OutOfBoundsPolicy
.public static OutOfBoundsPolicy fromString(java.lang.String theOutOfBoundsPolicy)
OutOfBoundsPolicy
corresponding to the
String
.public static OutOfBoundsPolicy getDefaultPolicy()
OutOfBoundsPolicy
.