Click or drag to resize

Bucket Class

A Histogram consists of a series of Buckets, each representing a region limited by a lower bound (exclusive) and an upper bound (inclusive).
Inheritance Hierarchy
SystemObject
  Altaxo.Calc.StatisticsBucket

Namespace: Altaxo.Calc.Statistics
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
[SerializableAttribute]
public class Bucket : IComparable<Bucket>, 
	ICloneable

The Bucket type exposes the following members.

Constructors
 NameDescription
Public methodBucket(Double) Constructs a Bucket that can be used as an argument for a IComparerT like DefaultPointComparer when performing a Binary search.
Public methodBucket(Double, Double, Double) Initializes a new instance of the Bucket class.
Top
Properties
 NameDescription
Public propertyCount The number of datapoints in the bucket.
Public propertyStatic memberDefaultPointComparer Default comparer.
Public propertyLowerBound Lower Bound of the Bucket.
Public propertyUpperBound Upper Bound of the Bucket.
Public propertyWidth Width of the Bucket.
Top
Methods
 NameDescription
Public methodClone Creates a copy of the Bucket with the lowerbound, upperbound and counts exactly equal.
Public methodCompareTo Comparison of two disjoint buckets. The buckets cannot be overlapping.
Public methodContains This method check whether a point is contained within this bucket.
Public methodEquals Checks whether two Buckets are equal.
(Overrides ObjectEquals(Object))
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCode Provides a hash code for this bucket.
(Overrides ObjectGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToString Formats a human-readable string for this bucket.
(Overrides ObjectToString)
Top
Remarks
This type declares a DataContract for out of the box ephemeral serialization with engines like DataContractSerializer, Protocol Buffers and FsPickler, but does not guarantee any compatibility between versions. It is not recommended to rely on this mechanism for durable persistence.
See Also