import { BinaryFeatureCollection } from '@loaders.gl/schema'; import { GeometryCollection } from '@geoda/common'; import { BinaryGeometryType } from '../geometry/binary-geometry'; /** * The result of a local neighbor match test. */ export type NeighborMatchTestResult = { /** number of common k-nearest neighbors in spatial and attribute space */ cardinality: number[]; /** hypergeometric probability of observing that overlap */ probability: number[]; }; /** * Configuration for the local neighbor match test. */ export type NeighborMatchTestProps = { k: number; data: number[][] | Float32Array[]; scaleMethod?: string; distType?: string; isMile?: boolean; binaryGeometryType: BinaryGeometryType; binaryGeometries: BinaryFeatureCollection[]; }; /** * Computes the local neighbor match test, assessing the overlap between k-nearest * neighbors in geographic space and k-nearest neighbors in attribute space. * * @returns {Promise} the cardinality and probability arrays */ export declare function getNeighborMatchTestFromBinaryGeometries({ k, data, scaleMethod, distType, isMile, binaryGeometryType, binaryGeometries, }: NeighborMatchTestProps): Promise; export declare function getNeighborMatchTestFromGeomCollection({ k, data, scaleMethod, distType, isMile, geomCollection, }: { k: number; data: number[][] | Float32Array[]; scaleMethod?: string; distType?: string; isMile?: boolean; geomCollection: GeometryCollection; }): Promise;