Class HashedRangedToNonuniformFloat

java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_long.to_float.HashedRangedToNonuniformFloat
All Implemented Interfaces:
LongFunction<Float>

public class HashedRangedToNonuniformFloat extends Object implements LongFunction<Float>
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 Details

    • HashedRangedToNonuniformFloat

      public HashedRangedToNonuniformFloat(long min, long max)
  • Method Details