Class LogLinearDistribution

    • Constructor Summary

      Constructors 
      Constructor Description
      LogLinearDistribution​(long scaleFactor, long lowMagnitude, long highMagnitude, long bucketSteps, long baseVal, java.util.List<Distribution.Bucket> frequencies)
      Creates a log/linear distribution with the given parameters, base values and frequencies.
      LogLinearDistribution​(long enc, long base, java.util.List<Distribution.Bucket> frequencies)
      Creates a log/linear distribution with the given parameters, base value and frequencies.
    • Constructor Detail

      • LogLinearDistribution

        public LogLinearDistribution​(long enc,
                                     long base,
                                     java.util.List<Distribution.Bucket> frequencies)
        Creates a log/linear distribution with the given parameters, base value and frequencies. Used by XML Persistence.
        Parameters:
        enc - The encoded representation of the high, low, step and steps llquantize() paramaters.
        base - The base value of the distirbution
        frequencies - list of frequencies in each bucket range
      • LogLinearDistribution

        public LogLinearDistribution​(long scaleFactor,
                                     long lowMagnitude,
                                     long highMagnitude,
                                     long bucketSteps,
                                     long baseVal,
                                     java.util.List<Distribution.Bucket> frequencies)
        Creates a log/linear distribution with the given parameters, base values and frequencies.
        Parameters:
        scaleFactor - factor
        lowMagnitude - the low magnitude
        highMagnitude - the high magnitude
        bucketSteps - number of linear steps per magnitude
        baseVal - basue value
        frequencies - list of frequencies in each bucket range
    • Method Detail

      • getValue

        public java.lang.Number getValue()
        Description copied from class: Distribution
        Gets the numeric value of this distribution used to compare distributions by overall magnitude, defined as the sum total of each bucket's frequency times the minimum of its range.
        Specified by:
        getValue in interface AggregationValue
        Specified by:
        getValue in class Distribution
        Returns:
        non-null numeric value
      • compareTo

        public int compareTo​(LogLinearDistribution d)
        Compares the double values of getValue() for overall magnitude, and if those are equal, compares frequencies at zero if the distrubions includea bucket whose range has a minimum of zero.
        Specified by:
        compareTo in interface java.lang.Comparable<LogLinearDistribution>
      • getBase

        public long getBase()
      • getEncValue

        public long getEncValue()