Table of Contents

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

v double

Representative value for the Bin

min double

The minimum value of the Range

max double

The maximum value of the range

count int

The number of items in the Bin

maxInclusive bool

Should 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

Range<double>
A discrete count of items which fall into a given range

Methods

Contains(double)

Determines if a value is contained with the segment

public bool Contains(double item)

Parameters

item double

The 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

other Bin

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(Bin, Bin)

public static bool operator ==(Bin lhs, Bin rhs)

Parameters

lhs Bin
rhs Bin

Returns

bool

operator !=(Bin, Bin)

public static bool operator !=(Bin lhs, Bin rhs)

Parameters

lhs Bin
rhs Bin

Returns

bool