App Metrics Fork me on GitHub
Show / Hide Table of Contents

Class UniformSnapshot

Represents a statistical snapshot of a sample set when using Vitter's Algorithm R. This is the snapshot used a histogram with a DefaultAlgorithmRReservoir

Inheritance
System.Object
UniformSnapshot
Namespace:App.Metrics.ReservoirSampling.Uniform
Assembly:cs.temp.dll.dll
Syntax
public sealed class UniformSnapshot : IReservoirSnapshot

Constructors

UniformSnapshot(Int64, Double, IEnumerable<Int64>, Boolean, String, String)

Initializes a new instance of the UniformSnapshot class.

Declaration
public UniformSnapshot(long count, double sum, IEnumerable<long> values, bool valuesAreSorted = false, string minUserValue = null, string maxUserValue = null)
Parameters
Type Name Description
System.Int64 count

The count of all observed values.

System.Double sum

The sum of all observed values.

IEnumerable<System.Int64> values

The values within the sample set.

System.Boolean valuesAreSorted

if set to true [values are already sorted].

System.String minUserValue

The minimum user value.

System.String maxUserValue

The maximum user value.

Properties

Count

Declaration
public long Count { get; }
Property Value
Type Description
System.Int64

Max

Declaration
public long Max { get; }
Property Value
Type Description
System.Int64

MaxUserValue

Declaration
public string MaxUserValue { get; }
Property Value
Type Description
System.String

Mean

Declaration
public double Mean { get; }
Property Value
Type Description
System.Double

Median

Declaration
public double Median { get; }
Property Value
Type Description
System.Double

Min

Declaration
public long Min { get; }
Property Value
Type Description
System.Int64

MinUserValue

Declaration
public string MinUserValue { get; }
Property Value
Type Description
System.String

Percentile75

Declaration
public double Percentile75 { get; }
Property Value
Type Description
System.Double

Percentile95

Declaration
public double Percentile95 { get; }
Property Value
Type Description
System.Double

Percentile98

Declaration
public double Percentile98 { get; }
Property Value
Type Description
System.Double

Percentile99

Declaration
public double Percentile99 { get; }
Property Value
Type Description
System.Double

Percentile999

Declaration
public double Percentile999 { get; }
Property Value
Type Description
System.Double

Size

Declaration
public int Size { get; }
Property Value
Type Description
System.Int32

StdDev

Declaration
public double StdDev { get; }
Property Value
Type Description
System.Double

Sum

Declaration
public double Sum { get; }
Property Value
Type Description
System.Double

Values

Declaration
public IEnumerable<long> Values { get; }
Property Value
Type Description
IEnumerable<System.Int64>

Methods

GetValue(Double)

Declaration
public double GetValue(double quantile)
Parameters
Type Name Description
System.Double quantile
Returns
Type Description
System.Double
Back to top Copyright © 2017 Allan Hardy
Generated by DocFX