Returns the local outlier factor of every point in the array, one score per row.
Details
A score near 1 means a point sits at the same density as its neighbours. Scores meaningfully above 1 mean it is in a sparser neighbourhood than they are, which is what marks an outlier. There is no universal cutoff, so compare scores within a dataset rather than against a fixed threshold.
k_neighbours sets how many neighbours define the local neighbourhood.
Small values react to fine structure and large values smooth it away.
Scoring is over the whole array, not within each row, so it is a single
value. A row that is not a single point, or is null, comes back null.
See also
Other cluster:
ga_dbscan(),
ga_kmeans()