Class NaNTransformers
- java.lang.Object
-
- org.apache.commons.statistics.descriptive.NaNTransformers
-
final class NaNTransformers extends java.lang.Object
Support for creatingNaNTransformer
implementations.- Since:
- 1.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
NaNTransformers.ErrorNaNTransformer
A transformer that errors onNaN
.private static class
NaNTransformers.ExcludeNaNTransformer
A transformer that movesNaN
to the upper end of the array.private static class
NaNTransformers.IncludeNaNTransformer
A NaN transformer that optionally copies the data.
-
Constructor Summary
Constructors Modifier Constructor Description private
NaNTransformers()
No instances.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static NaNTransformer
createNaNTransformer(NaNPolicy nanPolicy, boolean copy)
-
-
-
Method Detail
-
createNaNTransformer
static NaNTransformer createNaNTransformer(NaNPolicy nanPolicy, boolean copy)
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
-
-