# Maths.Histogram struct

Namespace: [Grasshopper2](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public readonly struct Maths.Histogram
```

A complete historgram for a data set.

## Properties

- [BucketCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.histogram/bucketcount.md): Gets the number of buckets in this histogram.
- [BucketWidth](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.histogram/bucketwidth.md): Gets the width of all buckets.
- [Deviation](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.histogram/deviation.md): Gets the standard deviation of the value collection.
- [Highest](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.histogram/highest.md): Gets the count of the fullest bucket.
- [LowerLimit](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.histogram/lowerlimit.md): Gets the lower limit of this histogram. This may differ from the [Maths.Histogram.Minimum](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.histogram/minimum.md) if the histogram is forced to align with another one.
- [Lowest](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.histogram/lowest.md): Gets the count of the emptiest bucket.
- [Maximum](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.histogram/maximum.md): Gets the value of the largest (or most positive) number in this histogram.
- [Mean](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.histogram/mean.md): Gets the mean of the value collection.
- [Median](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.histogram/median.md): Gets the median of the value collection.
- [Minimum](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.histogram/minimum.md): Gets the value of the smallest (or most negative) number in this histogram.
- [Q2](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.histogram/q2.md): Gets the transition between the first and second quartiles.
- [Q3](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.histogram/q3.md): Gets the transition between the second and third quartiles.
- [UpperLimit](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.histogram/upperlimit.md): Gets the upper limit of this histogram. This may differ from the [Maths.Histogram.Maximum](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.histogram/maximum.md) if the histogram is forced to align with another one.

## Indexers

- [this[]](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.histogram/item.md): Gets the bucket at the given index.

## Methods

- [BucketsAccordingToSturges](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.histogram/bucketsaccordingtosturges.md): (static) Compute the ideal number of buckets according to Herbert A. Sturges in his paper 'The Choice Of A Class Interval' in doi:10.1080/01621459.1926.10502161
- [Create](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.histogram/create.md): (4 overloads, static) Compute the histogram for a data set.
- [CreateMultiple](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.histogram/createmultiple.md): (3 overloads, static) Create multiple aligned histograms.
- [RoundBucketsToNiceNumber](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.histogram/roundbucketstonicenumber.md): (static) Round a histogram bucket count to a 'nice' number.
