@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
| Parameter | Type | Description |
|---|---|---|
points | InputType | The data. |
parameters? | Partial<ParametersOptics> | - |
Returns
OPTICS
See
- https://www.dbs.ifi.lmu.de/Publikationen/Papers/OPTICS.pdf
- https://en.wikipedia.org/wiki/OPTICS_algorithm
Overrides
ts
Clustering.constructorProperties
| Property | Type | Inherited from | Defined in |
|---|---|---|---|
_cluster_index | number | - | clustering/OPTICS.js:69 |
_clusters | number[][] | - | clustering/OPTICS.js:50 |
_D | number | Clustering._D | clustering/Clustering.js:19 |
_matrix | Matrix | Clustering._matrix | clustering/Clustering.js:15 |
_N | number | Clustering._N | clustering/Clustering.js:17 |
_parameters | ParametersOptics | Clustering._parameters | clustering/Clustering.js:13 |
_points | InputType | Clustering._points | clustering/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_listget_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