public class LogarithmicMapping
extends java.lang.Object
IndexMapping that is memory-optimal, that is to say that given a targeted relative accuracy, it
requires the least number of indices to cover a given range of values. This is done by logarithmically mapping
floating-point values to integers.| Constructor and Description |
|---|
LogarithmicMapping(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 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