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.
Afficher le fichier Open project: TimGebhardt/Disruptor.NET Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
TrackRange ( long value ) : void
ValidateBounds ( long upperBounds ) : void

Method Details

AddObservation() public méthode

public AddObservation ( long value ) : bool
value long
Résultat bool

AddObservations() public méthode

public AddObservations ( Histogram histogram ) : void
histogram Histogram
Résultat void

CalculateMean() public méthode

public CalculateMean ( ) : decimal
Résultat decimal

Clear() public méthode

public Clear ( ) : void
Résultat void

GetCountAt() public méthode

public GetCountAt ( int index ) : long
index int
Résultat long

GetFourNinesUpperBound() public méthode

public GetFourNinesUpperBound ( ) : long
Résultat long

GetTwoNinesUpperBound() public méthode

public GetTwoNinesUpperBound ( ) : long
Résultat long

GetUpperBoundAt() public méthode

public GetUpperBoundAt ( int index ) : long
index int
Résultat long

GetUpperBoundForFactor() public méthode

public GetUpperBoundForFactor ( double factor ) : long
factor double
Résultat long

Histogram() public méthode

public Histogram ( long upperBounds ) : System
upperBounds long
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string