Distribution

A distribution of values observed by an instrument. All Kamon distributions are based on the HdrHistogram and as such, they represent a distribution of values within a configured range and precision. By default, all instruments that generate distributions are configured to accept 1% error margin, meaning that all recorded values are adjusted to the bucket whose value is up to 1% away from the original value.

Distributions only expose data for non-empty buckets/percentiles.

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def buckets: Seq[Bucket]

Returns an immutable list of all buckets on this distribution. Calling this function requires allocation of new bucket instances every time it is called, if you just need to read the values to transfer them into another medium consider using a buckets iterator instead.

Returns an immutable list of all buckets on this distribution. Calling this function requires allocation of new bucket instances every time it is called, if you just need to read the values to transfer them into another medium consider using a buckets iterator instead.

def bucketsIterator: Iterator[Bucket]

Returns an iterator of all buckets on this distribution. This iterator uses a mutable buckets instance that gets updated as the user iterates through them to avoid allocating intermediary objects and thus, trying to copy bucket instances from the iterator into other structures might not work as you expect.

Returns an iterator of all buckets on this distribution. This iterator uses a mutable buckets instance that gets updated as the user iterates through them to avoid allocating intermediary objects and thus, trying to copy bucket instances from the iterator into other structures might not work as you expect.

def count: Long

Number of values stored in this distribution.

Number of values stored in this distribution.

Describes the range and precision settings of the instrument from which this distribution was taken.

Describes the range and precision settings of the instrument from which this distribution was taken.

def max: Long

Maximum value in this distribution.

Maximum value in this distribution.

def min: Long

Minimum value in this distribution.

Minimum value in this distribution.

def percentile(rank: Double): Percentile

Returns the percentile at the specified rank.

Returns the percentile at the specified rank.

Returns an immutable list of all percentiles on this distribution. Calling this function requires allocation of new percentile instances every time it is called, if you just need to read the values to transfer them into another medium consider using a percentiles iterator instead.

Returns an immutable list of all percentiles on this distribution. Calling this function requires allocation of new percentile instances every time it is called, if you just need to read the values to transfer them into another medium consider using a percentiles iterator instead.

Returns an iterator of all percentile values on this distribution. This iterator uses a mutable percentiles instance that gets updated as the user iterates through them to avoid allocating intermediary objects and thus, trying to copy percentile instances from the iterator into other structures might not work as you expect.

Returns an iterator of all percentile values on this distribution. This iterator uses a mutable percentiles instance that gets updated as the user iterates through them to avoid allocating intermediary objects and thus, trying to copy percentile instances from the iterator into other structures might not work as you expect.

def sum: Long

Sum of all values in this distribution.

Sum of all values in this distribution.