Class NaNTransformers
java.lang.Object
org.apache.commons.statistics.descriptive.NaNTransformers
Support for creating
NaNTransformer
implementations.- Since:
- 1.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
A transformer that errors onNaN
.private static final class
A transformer that movesNaN
to the upper end of the array.private static final class
A NaN transformer that optionally copies the data. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static NaNTransformer
createNaNTransformer
(NaNPolicy nanPolicy, boolean copy)
-
Constructor Details
-
NaNTransformers
private NaNTransformers()No instances.
-
-
Method Details
-
createNaNTransformer
Creates aNaNTransformer
based on thenanPolicy
and datacopy
policy.The transformer is thread-safe.
- Parameters:
nanPolicy
- NaN policy.copy
- Set totrue
to use a copy of the data.- Returns:
- the transformer
-