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

Struct WeightedSample

Inherited Members
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace:App.Metrics.ReservoirSampling.ExponentialDecay
Assembly:cs.temp.dll.dll
Syntax
public struct WeightedSample

Constructors

WeightedSample(Int64, String, Double)

Declaration
public WeightedSample(long value, string userValue, double weight)
Parameters
Type Name Description
System.Int64 value
System.String userValue
System.Double weight

Fields

UserValue

Declaration
public readonly string UserValue
Field Value
Type Description
System.String

Value

Declaration
public readonly long Value
Field Value
Type Description
System.Int64

Weight

Declaration
public readonly double Weight
Field Value
Type Description
System.Double

Methods

Equals(WeightedSample)

Declaration
public bool Equals(WeightedSample other)
Parameters
Type Name Description
WeightedSample other
Returns
Type Description
System.Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.ValueType.Equals(System.Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.ValueType.GetHashCode()

Operators

Equality(WeightedSample, WeightedSample)

Declaration
public static bool operator ==(WeightedSample left, WeightedSample right)
Parameters
Type Name Description
WeightedSample left
WeightedSample right
Returns
Type Description
System.Boolean

Inequality(WeightedSample, WeightedSample)

Declaration
public static bool operator !=(WeightedSample left, WeightedSample right)
Parameters
Type Name Description
WeightedSample left
WeightedSample right
Returns
Type Description
System.Boolean
Back to top Copyright © 2017 Allan Hardy
Generated by DocFX