C# Class Disruptor.Collections.Histogram

Histogram for tracking the frequency of observations of values below interval upper bounds. This class is useful for recording timings in nanoseconds across a large number of observations when high performance is required.
Exibir arquivo Open project: TimGebhardt/Disruptor.NET Class Usage Examples

Public Methods

Method Description
AddObservation ( long value ) : bool
AddObservations ( Histogram histogram ) : void
CalculateMean ( ) : decimal
Clear ( ) : void
GetCountAt ( int index ) : long
GetFourNinesUpperBound ( ) : long
GetTwoNinesUpperBound ( ) : long
GetUpperBoundAt ( int index ) : long
GetUpperBoundForFactor ( double factor ) : long
Histogram ( long upperBounds ) : System
ToString ( ) : string

Private Methods

Method Description
TrackRange ( long value ) : void
ValidateBounds ( long upperBounds ) : void

Method Details

AddObservation() public method

public AddObservation ( long value ) : bool
value long
return bool

AddObservations() public method

public AddObservations ( Histogram histogram ) : void
histogram Histogram
return void

CalculateMean() public method

public CalculateMean ( ) : decimal
return decimal

Clear() public method

public Clear ( ) : void
return void

GetCountAt() public method

public GetCountAt ( int index ) : long
index int
return long

GetFourNinesUpperBound() public method

public GetFourNinesUpperBound ( ) : long
return long

GetTwoNinesUpperBound() public method

public GetTwoNinesUpperBound ( ) : long
return long

GetUpperBoundAt() public method

public GetUpperBoundAt ( int index ) : long
index int
return long

GetUpperBoundForFactor() public method

public GetUpperBoundForFactor ( double factor ) : long
factor double
return long

Histogram() public method

public Histogram ( long upperBounds ) : System
upperBounds long
return System

ToString() public method

public ToString ( ) : string
return string