Sampling fraction arguments may be results of computation, and subject to floating point jitter.
Sampling fraction arguments may be results of computation, and subject to floating point jitter. I check the arguments with this epsilon slop factor to prevent spurious warnings for cases such as summing some numbers to get a sampling fraction of 1.000000001
An adaptation of org.apache.spark.util.random.RandomSampler