Class HashedRangedToNonuniformDouble

java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_long.to_double.HashedRangedToNonuniformDouble
All Implemented Interfaces:
java.util.function.LongToDoubleFunction

public class HashedRangedToNonuniformDouble
extends java.lang.Object
implements java.util.function.LongToDoubleFunction
This provides a random sample of a double in a range, without accounting for the non-uniform distribution of IEEE double representation. This means that values closer to high-precision areas of the IEEE spec will be weighted higher in the output. However, NaN and positive and negative infinity are filtered out via oversampling. Results are still stable for a given input value.
  • Constructor Summary

    Constructors 
    Constructor Description
    HashedRangedToNonuniformDouble​(long min, long max)  
  • Method Summary

    Modifier and Type Method Description
    double applyAsDouble​(long input)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

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

  • Method Details

    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • applyAsDouble

      public double applyAsDouble​(long input)
      Specified by:
      applyAsDouble in interface java.util.function.LongToDoubleFunction