Class UnsetIfCloseTo

java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_double.to_unset.UnsetIfCloseTo
All Implemented Interfaces:
java.util.function.DoubleFunction<java.lang.Object>

public class UnsetIfCloseTo
extends java.lang.Object
implements java.util.function.DoubleFunction<java.lang.Object>
Yield VALUE.unset if the input value is close to the specified value by the sigma threshold. Otherwise, pass the input value along.
  • Constructor Summary

    Constructors 
    Constructor Description
    UnsetIfCloseTo​(double compareto, double sigma)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Object apply​(double value)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UnsetIfCloseTo

      public UnsetIfCloseTo​(double compareto, double sigma)
  • Method Details

    • apply

      public java.lang.Object apply​(double value)
      Specified by:
      apply in interface java.util.function.DoubleFunction<java.lang.Object>