Calculate the local outlier factor on the given geometry column.
SQL reference: ST_LocalOutlierFactor
Signature
Parameters
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
Local outlier factor of the point as a double. Values substantially above 1 indicate an outlier.