C# Class Elders.Hystrix.NET.Util.HystrixRollingPercentile.PercentileSnapshot

Stores all the values of the given buckets and provides methods to calculate percentiles.
Show file Open project: Elders/Hystrix.NET Class Usage Examples

Public Methods

Method Description
GetPercentile ( double percentile ) : int

Calculates percentile.

PercentileSnapshot ( ) : System

Initializes a new instance of the PercentileSnapshot class using specified values.

PercentileSnapshot ( Bucket buckets ) : System

Initializes a new instance of the PercentileSnapshot class from the given buckets.

Private Methods

Method Description
ComputePercentile ( double percent ) : int

Do the actual calculation.

http://en.wikipedia.org/wiki/Percentile http://cnx.org/content/m10805/latest/

Method Details

GetPercentile() public method

Calculates percentile.
public GetPercentile ( double percentile ) : int
percentile double The percentile to calculate.
return int

PercentileSnapshot() public method

Initializes a new instance of the PercentileSnapshot class using specified values.
public PercentileSnapshot ( ) : System
return System

PercentileSnapshot() public method

Initializes a new instance of the PercentileSnapshot class from the given buckets.
public PercentileSnapshot ( Bucket buckets ) : System
buckets Bucket The buckets to initialize the snapshot.
return System