Class InterpolatingLongDoubleSampler
java.lang.Object
io.nosqlbench.virtdata.library.curves4.continuous.common.InterpolatingLongDoubleSampler
- All Implemented Interfaces:
java.util.function.LongToDoubleFunction
public class InterpolatingLongDoubleSampler
extends java.lang.Object
implements java.util.function.LongToDoubleFunction
See
Interpolate for
details on implementation.
For the 6 implementations of interpolating samplers which use inverse cumulative distribution tables,
care should be given to the following:
- Input Ranging - ensure that the input type is appropriate for the curve; pre-scaling needs to be matched to the input type
- resolution, scale, and LUT length; T
- +1 LUT padding for U=1.0
- Uniform LERP code in main function
-
Constructor Summary
Constructors Constructor Description InterpolatingLongDoubleSampler(java.util.function.DoubleUnaryOperator icdSource, int resolution, boolean hash, boolean clamp, double clampMin, double clampMax, boolean finite) -
Method Summary
Modifier and Type Method Description doubleapplyAsDouble(long input)
-
Constructor Details
-
InterpolatingLongDoubleSampler
public InterpolatingLongDoubleSampler(java.util.function.DoubleUnaryOperator icdSource, int resolution, boolean hash, boolean clamp, double clampMin, double clampMax, boolean finite)
-
-
Method Details
-
applyAsDouble
public double applyAsDouble(long input)- Specified by:
applyAsDoublein interfacejava.util.function.LongToDoubleFunction
-