#### P

#### T

- IReset
- INeighborhood

The neighborhood's original radius (Eucledian metric)

The neighborhood's target position / centroid

Computes distance metric between

`pos`

and this neighborhood's target pos. If result distance is <= current radius, adds`val`

to neighborhood and shrinks neighborhood radius to new distance. Returns distance metric.#### Parameters

##### pos: P

##### val: T

#### Returns number

Returns true, if distance

`d`

is <= current radius of this neighborhood. If`eucledian`

is true (default: true), then`d`

will first be converted into the metric used by this neighborhood using IDistance.to, otherwise it is expected to be already in that metric space.#### Parameters

##### d: number

##### Optional eucledian: boolean

#### Returns boolean

#### Returns INeighborhood<P, T>

Generated using TypeDoc

The distance metric used by this neighborhood