Class DubboAbstractTDigest

java.lang.Object
com.tdunning.math.stats.TDigest
org.apache.dubbo.metrics.aggregate.DubboAbstractTDigest
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DubboMergingDigest

public abstract class DubboAbstractTDigest extends com.tdunning.math.stats.TDigest
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(double x)
    Adds a sample to a histogram.
    void
    add(com.tdunning.math.stats.TDigest other)
     
    boolean
     
    com.tdunning.math.stats.TDigest
    Sets up so that all centroids will record all data assigned to them.

    Methods inherited from class com.tdunning.math.stats.TDigest

    add, add, asBytes, asSmallBytes, byteSize, cdf, centroidCount, centroids, compress, compression, createAvlTreeDigest, createDigest, createMergingDigest, getMax, getMin, quantile, setScaleFunction, size, smallByteSize

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DubboAbstractTDigest

      public DubboAbstractTDigest()
  • Method Details

    • recordAllData

      public com.tdunning.math.stats.TDigest recordAllData()
      Sets up so that all centroids will record all data assigned to them. For testing only, really.
      Specified by:
      recordAllData in class com.tdunning.math.stats.TDigest
    • isRecording

      public boolean isRecording()
      Specified by:
      isRecording in class com.tdunning.math.stats.TDigest
    • add

      public void add(double x)
      Adds a sample to a histogram.
      Specified by:
      add in class com.tdunning.math.stats.TDigest
      Parameters:
      x - The value to add.
    • add

      public void add(com.tdunning.math.stats.TDigest other)
      Specified by:
      add in class com.tdunning.math.stats.TDigest