Class HashedDoubleRange
- java.lang.Object
-
- io.virtdata.basicsmappers.from_long.to_double.HashedDoubleRange
-
- All Implemented Interfaces:
java.util.function.LongToDoubleFunction
public class HashedDoubleRange extends java.lang.Object implements java.util.function.LongToDoubleFunctionReturn 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 Constructor Description HashedDoubleRange(double min, double max)
-
Method Summary
Modifier and Type Method Description doubleapplyAsDouble(long value)
-