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.
Use k_neighbours to set how many neighbours define the local
neighbourhood. With small values ga_outlier_scores() reacts to fine
structure, and with large values it smooths that structure away. It scores
over the whole array, not within each row, so k_neighbours is a single
value. It returns null for a row that is not a single point, or is null.
See also
Other cluster:
ga_dbscan(),
ga_kmeans()