Class AbstractTDigest

    • Constructor Detail

      • AbstractTDigest

        public AbstractTDigest()
    • Method Detail

      • recordAllData

        public TDigest recordAllData()
        Sets up so that all centroids will record all data assigned to them. For testing only, really.
        Specified by:
        recordAllData in class TDigest
        Returns:
        This TDigest so that configurations can be done in fluent style.
      • add

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

        public void add​(TDigest other)
        Description copied from class: TDigest
        Add all of the centroids of another TDigest to this one.
        Specified by:
        add in class TDigest
        Parameters:
        other - The other TDigest
      • createCentroid

        protected Centroid createCentroid​(double mean,
                                          int id)