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 classA transformer that errors onNaN.private static final classA transformer that movesNaNto the upper end of the array.private static final classA NaN transformer that optionally copies the data. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static NaNTransformercreateNaNTransformer(NaNPolicy nanPolicy, boolean copy)
-
Constructor Details
-
NaNTransformers
private NaNTransformers()No instances.
-
-
Method Details
-
createNaNTransformer
Creates aNaNTransformerbased on thenanPolicyand datacopypolicy.The transformer is thread-safe.
- Parameters:
nanPolicy- NaN policy.copy- Set totrueto use a copy of the data.- Returns:
- the transformer
-