Class Bin
- Namespace
- LinqStatistics
- Assembly
- LinqStatistics.dll
A discrete count of items which fall into a given range
[ComVisible(false)]
public sealed class Bin : ItemCount<double>, IEquatable<ItemCount<double>>, IEquatable<Bin>
- Inheritance
-
Bin
- Implements
- Inherited Members
Constructors
Bin(double, double, double, int, bool)
ctor
public Bin(double v, double min, double max, int count, bool maxInclusive = false)
Parameters
vdoubleRepresentative value for the Bin
mindoubleThe minimum value of the Range
maxdoubleThe maximum value of the range
countintThe number of items in the Bin
maxInclusiveboolShould Max be included in the Range or excluded - default is excluded
Properties
MaxInclusive
Determines whether Max should be included or excluded in the range
public bool MaxInclusive { get; }
Property Value
- bool
- A discrete count of items which fall into a given range
Range
The range
public Range<double> Range { get; }
Property Value
Methods
Contains(double)
Determines if a value is contained with the segment
public bool Contains(double item)
Parameters
itemdoubleThe item to check
Returns
- bool
True if item is contained in the range - taking into acount MaxInclusive
Equals(Bin)
public bool Equals(Bin other)
Parameters
otherBin
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(Bin, Bin)
public static bool operator ==(Bin lhs, Bin rhs)
Parameters
Returns
operator !=(Bin, Bin)
public static bool operator !=(Bin lhs, Bin rhs)