Class ScaledDouble
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_long.to_double.ScaledDouble
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
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
-
applyAsDouble
public double applyAsDouble(long value) - Specified by:
applyAsDoublein interfaceLongToDoubleFunction
-