import { Feature, FeatureCollection, Point } from "@turf/helpers"; /** * calcualte the Minkowski p-norm distance between two features. * @param feature1 point feature * @param feature2 point feature * @param p p-norm 1=, feature2: Feature, p?: number): number; /** * * * @name distanceWeight * @param {FeatureCollection} fc FeatureCollection. * @param {Object} [options] option object. * @param {number} [options.threshold=10000] If the distance between neighbor and * target features is greater than threshold, the weight of that neighbor is 0. * @param {number} [options.p=2] Minkowski p-norm distance parameter. * 1: Manhattan distance. 2: Euclidean distance. 1=>} distance weight matrix. * @example * * var bbox = [-65, 40, -63, 42]; * var dataset = turf.randomPoint(100, { bbox: bbox }); * var result = turf.distanceWeight(dataset); */ export default function distanceWeight(fc: FeatureCollection, options?: { threshold?: number; p?: number; binary?: boolean; alpha?: number; standardization?: boolean; }): number[][];