Enum Class QuantileSearchCriteria
java.lang.Object
java.lang.Enum<QuantileSearchCriteria>
org.apache.datasketches.quantilescommon.QuantileSearchCriteria
- All Implemented Interfaces:
Serializable
,Comparable<QuantileSearchCriteria>
,Constable
These search criteria are used by the KLL, REQ and Classic Quantiles sketches in the DataSketches library.
- Author:
- Lee Rhodes
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDefinition of EXCLUSIVE getQuantile(r) search:
Given rank r, return the quantile of the smallest rank that is strictly greater than r.Definition of INCLUSIVE getQuantile(r) search:
Given rank r, return the quantile of the smallest rank that is strictly greater than or equal to r. -
Method Summary
Modifier and TypeMethodDescriptionstatic QuantileSearchCriteria
Returns the enum constant of this class with the specified name.static QuantileSearchCriteria[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
INCLUSIVE
Definition of INCLUSIVE getQuantile(r) search:
Given rank r, return the quantile of the smallest rank that is strictly greater than or equal to r.Definition of INCLUSIVE getRank(q) search:
Given quantile q, return the rank, r, of the largest quantile that is less than or equal to q. -
EXCLUSIVE
Definition of EXCLUSIVE getQuantile(r) search:
Given rank r, return the quantile of the smallest rank that is strictly greater than r.However, if the given rank is is equal to 1.0, or there is no quantile that satisfies this criterion the method will return a NaN or null.
Definition of EXCLUSIVE getRank(q) search:
Given quantile q, return the rank, r, of the largest quantile that is strictly less than q.If there is no quantile value that is strictly less than q, the method will return a rank of zero.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-