pNormDistance
描述
¥Description
calcualte the Minkowski p-norm distance between two features.
参数
¥Parameters
名称 | 类型 | 描述 |
---|---|---|
feature1 | UNCERTAIN | 点特性 |
feature2 | UNCERTAIN | 点特性 |
p | UNCERTAIN | p 范数 1=<p<=无穷大 1:曼哈顿距离 2:欧氏距离(默认 2) |
返回
¥Returns
安装
¥Installation
$ npm install @turf/distance-weight
import { pNormDistance } from "@turf/distance-weight";
const result = pNormDistance(...);
$ npm install @turf/turf
import * as turf from "@turf/turf";
const result = turf.pNormDistance(...);