#pragma once #include namespace DB { /// TDigestStatistic is a kind of histogram. class TDigestStatistic : public IStatistic { QuantileTDigest data; public: explicit TDigestStatistic(const StatisticDescription & stat_) : IStatistic(stat_) { } Float64 estimateLess(Float64 val) const; void serialize(WriteBuffer & buf) override; void deserialize(ReadBuffer & buf) override; void update(const ColumnPtr & column) override; UInt64 count() override; }; }