Class HashRange
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_long.to_double.HashRange
- All Implemented Interfaces:
LongToDoubleFunction
Return a double value within the specified range. This function
uses an intermediate long to arrive at the sampled value before
conversion to double, thus providing a more linear sample at the
expense of some precision at extremely large values.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HashRange
public HashRange(double min, double max)
-
-
Method Details
-
applyAsDouble
public double applyAsDouble(long value) - Specified by:
applyAsDoublein interfaceLongToDoubleFunction
-