mirror of
https://github.com/photoprism/photoprism.git
synced 2026-07-18 09:05:25 +00:00
The vendored OPTICS implementation was never invoked: face clustering uses DBSCAN (alg.DBSCANWithProgress), and OPTICS() had no callers or tests. Removing it also drops a latent no-op loop (PVS-Studio V8016) in extract(). Drop the now-orphaned errZeroXi and update the rangeJob comment and README to match. See discussion #5628.
13 lines
482 B
Go
13 lines
482 B
Go
package alg
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
errEmptySet = errors.New("empty training set")
|
|
errZeroIterations = errors.New("number of iterations cannot be less than 1")
|
|
errOneCluster = errors.New("number of clusters cannot be less than 2")
|
|
errZeroEpsilon = errors.New("epsilon cannot be 0")
|
|
errZeroMinpts = errors.New("minpts cannot be 0")
|
|
errZeroWorkers = errors.New("number of workers cannot be less than 0")
|
|
errInvalidRange = errors.New("range is invalid")
|
|
)
|