Skip to main content
Calculate the local outlier factor on the given geometry column. SQL reference: ST_LocalOutlierFactor

Signature

Parameters

ColumnOrName
required
Geometry column or name.
Union[ColumnOrName, int]
required
Number of nearest neighbors to use for the LOF calculation.
Optional[Union[ColumnOrName, bool]]
default:"False"
Whether to measure distances on a spherical model of the earth. Default is False.

Returns

Column
Local outlier factor of the point as a double. Values substantially above 1 indicate an outlier.