Class NaNTransformers
- java.lang.Object
-
- org.apache.commons.statistics.descriptive.NaNTransformers
-
final class NaNTransformers extends java.lang.ObjectSupport for creatingNaNTransformerimplementations.- Since:
- 1.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classNaNTransformers.ErrorNaNTransformerA transformer that errors onNaN.private static classNaNTransformers.ExcludeNaNTransformerA transformer that movesNaNto the upper end of the array.private static classNaNTransformers.IncludeNaNTransformerA NaN transformer that optionally copies the data.
-
Constructor Summary
Constructors Modifier Constructor Description privateNaNTransformers()No instances.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static NaNTransformercreateNaNTransformer(NaNPolicy nanPolicy, boolean copy)
-
-
-
Method Detail
-
createNaNTransformer
static NaNTransformer createNaNTransformer(NaNPolicy nanPolicy, boolean copy)
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
-
-