Class ScaledDouble

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

public class ScaledDouble extends Object implements LongToDoubleFunction
Return the double value closest to the fraction (input) / (Long.MAX_VALUE). This is essentially a scaling function from Long to Double over the range of positive longs to the double unit interval, so [0.0d - 1.0d)
  • Field Details

    • MAX_DOUBLE_VIA_LONG_PHI

      public static final double MAX_DOUBLE_VIA_LONG_PHI
      See Also:
  • Constructor Details

    • ScaledDouble

      public ScaledDouble()
  • Method Details