public class QuadraticallyInterpolatedMapping
extends java.lang.Object
IndexMapping that approximates the memory-optimal one (namely LogarithmicMapping) by
extracting the floor value of the logarithm to the base 2 from the binary representations of floating-point values
and quadratically interpolating the logarithm in-between.| Constructor and Description |
|---|
QuadraticallyInterpolatedMapping(double relativeAccuracy) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
int |
index(double value) |
double |
maxIndexableValue() |
double |
minIndexableValue() |
double |
relativeAccuracy() |
com.datadoghq.sketch.ddsketch.proto.IndexMapping |
toProto()
Generates a protobuf representation of this
IndexMapping. |
double |
value(int index) |
public QuadraticallyInterpolatedMapping(double relativeAccuracy)
public final int index(double value)
index in interface IndexMappingpublic final double value(int index)
value in interface IndexMappingpublic final double relativeAccuracy()
relativeAccuracy in interface IndexMappingpublic double minIndexableValue()
minIndexableValue in interface IndexMappingpublic double maxIndexableValue()
maxIndexableValue in interface IndexMappingpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic com.datadoghq.sketch.ddsketch.proto.IndexMapping toProto()
IndexMappingIndexMapping.toProto in interface IndexMappingIndexMapping