# uncheckedSquaredEuclideanDistance

> **uncheckedSquaredEuclideanDistance**(`first`, `second`, `secondOffset?`): `number`

Defined in: [packages/distance/src/vector-distance.ts:24](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/distance/src/vector-distance.ts#L24)

Sum squared differences in coordinate order for inputs whose contract was checked by the caller. The second vector may hold packed rows. Its window starts at `secondOffset` and has the length of the first vector. The caller supplies finite coordinates and a valid offset and window. Ordinary binary64 sums can overflow or lose subnormal terms. Takes O(n) time and O(1) space.

## Parameters

### first

[`NumericVector`](/reference/knotkit/distance/type-aliases/numericvector/)

### second

[`NumericVector`](/reference/knotkit/distance/type-aliases/numericvector/)

### secondOffset?

`number` = `0`

## Returns

`number`
