Skip to content

@saehrimnir/druidjs / OPTICS

Class: OPTICS

Defined in: clustering/OPTICS.js:26

OPTICS (Ordering Points To Identify the Clustering Structure)

A density-based clustering algorithm that extends DBSCAN. It handles clusters of varying densities and produces a reachability plot that can be used to extract clusters.

Extends

  • Clustering

Constructors

Constructor

ts
new OPTICS(points: InputType, parameters?: Partial<ParametersOptics>): OPTICS;

Defined in: clustering/OPTICS.js:35

Ordering Points To Identify the Clustering Structure.

Parameters

ParameterTypeDescription
pointsInputTypeThe data.
parameters?Partial<ParametersOptics>-

Returns

OPTICS

See

Overrides

ts
Clustering.constructor

Properties

PropertyTypeInherited fromDefined in
_cluster_indexnumber-clustering/OPTICS.js:69
_clustersnumber[][]-clustering/OPTICS.js:50
_DnumberClustering._Dclustering/Clustering.js:19
_matrixMatrixClustering._matrixclustering/Clustering.js:15
_NnumberClustering._Nclustering/Clustering.js:17
_parametersParametersOpticsClustering._parametersclustering/Clustering.js:13
_pointsInputTypeClustering._pointsclustering/Clustering.js:11

Methods

get_cluster_list()

ts
get_cluster_list(): number[];

Defined in: clustering/OPTICS.js:206

Returns

number[]

Returns an array, where the ith entry defines the cluster affirmation of the ith point of given data. (-1 stands for outlier)

Overrides

ts
Clustering.get_cluster_list

get_clusters()

ts
get_clusters(): number[][];

Defined in: clustering/OPTICS.js:187

Returns an array of clusters.

Returns

number[][]

Array of clusters with the indices of the rows in given matrix.

Overrides

ts
Clustering.get_clusters