# NearestInterpolation class

Namespace: [MathNet.Numerics.Interpolation](https://developer.rhino3d.com/api/gh2/namespace/mathnet.numerics.interpolation.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public static class NearestInterpolation
```

Nearest neighbour block interpolation.

## Methods

- [Interpolate](https://developer.rhino3d.com/api/gh2/type/mathnet.numerics.interpolation.nearestinterpolation/interpolate.md): (static) Create a block interpolation from unsorted samples.
- [InterpolateSorted](https://developer.rhino3d.com/api/gh2/type/mathnet.numerics.interpolation.nearestinterpolation/interpolatesorted.md): (static) Create a block interpolation from sorted samples.
