public final class ClassicUtil extends Object
Modifier and Type | Method and Description |
---|---|
static int |
getKFromEpsilon(double epsilon,
boolean pmf)
Used by Classic Quantiles.
|
static double |
getNormalizedRankError(int k,
boolean pmf)
Used by Classic Quantiles.
|
public static double getNormalizedRankError(int k, boolean pmf)
k
- the configuration parameterpmf
- if true, returns the "double-sided" normalized rank error for the getPMF() function.
Otherwise, it is the "single-sided" normalized rank error for all the other queries.public static int getKFromEpsilon(double epsilon, boolean pmf)
epsilon
- the normalized rank error between zero and one.pmf
- if true, this function returns k assuming the input epsilon
is the desired "double-sided" epsilon for the getPMF() function. Otherwise, this function
returns k assuming the input epsilon is the desired "single-sided"
epsilon for all the other queries.Copyright © 2015–2024 The Apache Software Foundation. All rights reserved.