Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Add histogram #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

torymac1
Copy link

This commit adds histogram implementation based on TDigest algorithm.

Unit test: use same test cases as Python SDK, all test cases passed.

* @param _accuary: accuary
* _minute_millis: minute in millisecond
*/
ThreadMinBin(double _accuary, uint64_t _minute_millis) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follow the common practice of C++ constructor, be consistent with ones in TDigest.h. Same for the rest of the PR.

* @description: Construct Wavefront Histogram.
* @param cur_min_millis: current miniute in millisecond
*/
WavefrontHistogram(uint64_t cur_min_millis = 0) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should pass a function which provides timestamp instead of just passes a static timestamp

@haosong haosong requested a review from mengranwo November 21, 2019 22:21
* limitations under the License.
*/

/* Modified by Sangtian Wang ([email protected]) */
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering what's the part you modified, is it possible to add the dependency of the original one instead of copy past the whole file?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants