Classes
Methods
best() → (nullable) {number}
- Source:
Returns:
The clustering level with the highest modularity.
Alternatively null
, if this has not been previously set via setBest
.
- Type
- number
free()
- Source:
Returns:
Frees the memory allocated on the Wasm heap for this object. This invalidates this object and all references to it.
membership(optionsopt) → (nullable) {Int32Array|Int32WasmArray}
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
{}
|
Optional parameters. Properties
|
Returns:
Array containing the cluster membership for each cell.
Alternatively null
, if fillable = false
and the array was not already filled.
- Type
- Int32Array | Int32WasmArray
modularity(optionsopt) → (nullable) {number}
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
{}
|
Optional parameters. Properties
|
Returns:
The modularity at the specified level.
Alternatively null
, if this has not been set by setModularity
.
- Type
- number
numberOfLevels() → {number}
- Source:
Returns:
Number of levels in the results.
- Type
- number
setBest(best)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
best |
number | Clustering level with the highest modularity. |
Returns:
best
is set as the best clustering level.
This is typically only used after emptyClusterSnnGraphResults
.
setModularity(level, modularity)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
level |
number | The clustering level at which to set the modularity. |
modularity |
number | Modularity value. |
Returns:
modularity
is set as the modularity at the specified level.
This is typically only used after emptyClusterSnnGraphResults
.