geodalib / lisa/src / localMoran
Function: localMoran()
localMoran(
props
):Promise
<LocalMoranResult
>
Defined in: lisa/src/sa/local-moran.ts:67
Calculates univariate Local Moran's I statistics for spatial autocorrelation
Example
ts
import { localMoran } from '@geoda/lisa';
const data = [1, 2, 3, 4, 5];
const neighbors = [[1], [0, 2], [1, 3], [2, 4], [3]];
const result = await localMoran({
data,
neighbors,
});
console.log(result);
Parameters
props
Configuration object for Local Moran's I calculation
Returns
Promise
<LocalMoranResult
>
Promise resolving to Local Moran statistics and cluster assignments