# Maths.Sampling class

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

```cs
public static class Maths.Sampling
```

Confidence intervals for quantities estimated from a single sample. The bounds agree with those of the equivalent commands in R, i.e. `t.test` and `binom.test`.

## Methods

- [EntropyInterval](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.sampling/entropyinterval.md): (static) Compute an approximate confidence interval for the Shannon entropy, in bits, of the distribution behind the provided values.
- [MeanInterval](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.sampling/meaninterval.md): (2 overloads, static) Compute a Student-t confidence interval for the true mean of the process which generated the provided values.
- [SuccessFractionInterval](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.sampling/successfractioninterval.md): (static) Compute the Clopper-Pearson confidence interval for the true success probability behind an observed number of successful trials.
- [Ttest](https://developer.rhino3d.com/api/gh2/type/grasshopper2.maths.sampling/ttest.md): (static) Perform a classical, two-sided, one-sample Student t-test on the provided data, against the null hypothesis that the true mean is zero.
