Skip to content

geodalib / lisa/src / spatialLagMedian

Function: spatialLagMedian()

spatialLagMedian(values, neighbors): number[]

Defined in: lisa/src/sa/spatial-lag.ts:81

Compute the median spatial lag of a list of values based on a list of neighbors and weights using the mean function.

Parameters

values

number[]

The numeric values to compute spatial lag for.

neighbors

number[][]

The list of neighbors for each value.

Returns

number[]

The spatial lag values.