# ISampleSet interface

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

```cs
public interface ISampleSet : IDimensional
```

Base interface (no generics) for n-dimensional sample sets.

**Derived types:** [SampleSet<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.sampleset-1.md)

## Properties

- [Coordinates](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.isampleset/coordinates.md): Enumerate over all sample coordinates.
- [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.isampleset/count.md): Gets the number of samples in this set.
- [Samples](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.isampleset/samples.md): Enumerate over all samples.

## Indexers

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

## Methods

- [ComputeAxisDomain](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.isampleset/computeaxisdomain.md): (2 overloads) Compute the domain and average of all samples along some axis.
- [ComputeAxisMean](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.isampleset/computeaxismean.md): (2 overloads) Compute the exact or estimated mean for this set.
- [ComputeBoundingBox](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.isampleset/computeboundingbox.md): (2 overloads) Compute the bounding box for all items.
- [ComputeKdTree](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.isampleset/computekdtree.md): Compute the k-d tree associated with this sample set. Once a k-d tree has been computed once, additional calls to this method will return a cached version.
- [ComputeKMeansClusters](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.isampleset/computekmeansclusters.md): (4 overloads) Compute a distribution of k-means clusters.
- [ComputeMean](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.isampleset/computemean.md): (3 overloads) Compute the exact or estimated mean for this set.
- [DistributePoints](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.isampleset/distributepoints.md): Randomly distribute N points within the space. This method performs pretty poorly when 'count' is large.
- [NormaliseProjection](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.isampleset/normaliseprojection.md): (3 overloads) Normalise the entire projection to the unit hypercube.
- [Point](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.isampleset/point.md): Gets the point associated with the given index.
- [Points](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.isampleset/points.md): Get an array of points.

## Inherited Members

- From [IDimensional](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.idimensional.md): [Description](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.idimensional/description.md), [Dimensionality](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.clustering.idimensional/dimensionality.md)
