aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/histogram/adaptive/adaptive_histogram.h
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:17 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:17 +0300
commitd3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch)
treedd4bd3ca0f36b817e96812825ffaf10d645803f2 /library/cpp/histogram/adaptive/adaptive_histogram.h
parent72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff)
downloadydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/histogram/adaptive/adaptive_histogram.h')
-rw-r--r--library/cpp/histogram/adaptive/adaptive_histogram.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/histogram/adaptive/adaptive_histogram.h b/library/cpp/histogram/adaptive/adaptive_histogram.h
index 694c198d11..fa8f48433f 100644
--- a/library/cpp/histogram/adaptive/adaptive_histogram.h
+++ b/library/cpp/histogram/adaptive/adaptive_histogram.h
@@ -10,7 +10,7 @@
#include <util/generic/vector.h>
namespace NKiwiAggr {
- class TAdaptiveHistogram: private TNonCopyable, public IHistogram {
+ class TAdaptiveHistogram: private TNonCopyable, public IHistogram {
protected:
static const size_t DEFAULT_INTERVALS = 100;
@@ -25,7 +25,7 @@ namespace NKiwiAggr {
double SumBelow;
double SumAbove;
- TFastBin(double first_, double second_, double sumBelow = 0, double sumAbove = 0)
+ TFastBin(double first_, double second_, double sumBelow = 0, double sumAbove = 0)
: first(first_)
, second(second_)
, SumBelow(sumBelow)
@@ -33,7 +33,7 @@ namespace NKiwiAggr {
{
}
- bool operator<(const TFastBin& rhs) const {
+ bool operator<(const TFastBin& rhs) const {
return first < rhs.first;
}
};
@@ -102,7 +102,7 @@ namespace NKiwiAggr {
double GetSumBelowBoundImpl(double bound, const TBins& bins, typename TBins::const_iterator rightBin, const TGetSumBelow& getSumBelow) const;
};
- template <TQualityFunction QualityFunction>
+ template <TQualityFunction QualityFunction>
class TDefinedAdaptiveHistogram: public TAdaptiveHistogram {
public:
TDefinedAdaptiveHistogram(size_t intervals, ui64 id = 0)
@@ -128,4 +128,4 @@ namespace NKiwiAggr {
typedef TDefinedAdaptiveHistogram<CalcWeightQuality> TAdaptiveWeightHistogram;
typedef TDefinedAdaptiveHistogram<CalcWardQuality> TAdaptiveWardHistogram;
-}
+}