Skip to content

Documentation v1.0.0


Documentation / @openassistant/geoda / GetWeights

Type Alias: GetWeights() ​

GetWeights = (datasetName, type, options) => Promise<{ weights: number[][]; weightsMeta: WeightsMeta; }>

Defined in: src/weights/tool.ts:164

Parameters ​

datasetName ​

string

type ​

"knn" | "queen" | "rook" | "threshold"

options ​

distanceThreshold? ​

number

includeLowerOrder? ​

boolean

isMile? ​

boolean

k? ​

number

orderOfContiguity? ​

number

precisionThreshold? ​

number

useCentroids? ​

boolean

Returns ​

Promise<{ weights: number[][]; weightsMeta: WeightsMeta; }>

Released under the MIT License.