# FitMetric enum

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

```cs
public enum FitMetric
```

Enumerates the error metrics which fitting can seek to minimise.

## Values

| Name | Value | Description |
| --- | --- | --- |
| LeastSquares | 0 | Minimise the sum of squared deviations. |
| LeastDeviations | 1 | Minimise the sum of absolute deviations. |
| Minimax | 2 | Minimise the single largest deviation. |
