diff options
| author | elnikovss <[email protected]> | 2022-02-10 16:50:57 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:50:57 +0300 | 
| commit | 5532ae5e5914329418d821bdad60854ab1f3222c (patch) | |
| tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/histogram/adaptive | |
| parent | e213ad1e87401fd3fffeac4e064a52c1ff4893be (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/histogram/adaptive')
| -rw-r--r-- | library/cpp/histogram/adaptive/histogram.h | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/histogram/adaptive/histogram.h b/library/cpp/histogram/adaptive/histogram.h index 23fb1306c41..360fd9a6936 100644 --- a/library/cpp/histogram/adaptive/histogram.h +++ b/library/cpp/histogram/adaptive/histogram.h @@ -51,12 +51,12 @@ namespace NKiwiAggr {          virtual double CalcLowerBound(double sum) = 0;          virtual double CalcUpperBoundSafe(double sum) = 0;          virtual double CalcLowerBoundSafe(double sum) = 0; -        double GetValueAtPercentile(double percentile) {  -            return CalcUpperBound(percentile * GetSum());  -        }  -        double GetValueAtPercentileSafe(double percentile) {  -            return CalcUpperBoundSafe(percentile * GetSum());  -        }  +        double GetValueAtPercentile(double percentile) { +            return CalcUpperBound(percentile * GetSum()); +        } +        double GetValueAtPercentileSafe(double percentile) { +            return CalcUpperBoundSafe(percentile * GetSum()); +        }          // Histogram implementation is supposed to clear all precomputed values() if Add() is called after PrecomputePartialSums()          virtual void PrecomputePartialSums() {  | 
