Methods
delta(optionsopt) → {Float64Array|Float64WasmArray}
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
{}
|
Optional parameters. Properties
|
Returns:
Array of length equal to the number of cells, containing the difference in scores between the best and second-best references.
- Type
- Float64Array | Float64WasmArray
free()
- Source:
Returns:
Frees the memory allocated on the Wasm heap for this object. This invalidates this object and all references to it.
numberOfCells() → {number}
- Source:
Returns:
Number of cells that were labelled.
- Type
- number
numberOfReferences() → {number}
- Source:
Returns:
Number of labels used in integratedLabelCells
.
- Type
- number
predicted(optionsopt) → {Int32Array|Int32WasmArray}
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
{}
|
Optional parameters. Properties
|
Returns:
Array of length equal to the number of cells, containing the index of the best reference for each cell.
- Type
- Int32Array | Int32WasmArray
scoreForCell(i, optionsopt) → {Float64Array|Float64WasmArray}
- Source:
Parameters:
Name | Type | Attributes | Default | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
i |
number | Index of the cell of interest. |
|||||||||||||||||
options |
object |
<optional> |
{}
|
Optional parameters. Properties
|
Returns:
Array containing the scores for this cell across all labels.
If buffer
is supplied, the function returns buffer
if asTypedArray = false
, or a view on buffer
if asTypedArray = true
.
- Type
- Float64Array | Float64WasmArray
scoreForReference(i, optionsopt) → {Float64Array|Float64WasmArray}
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
i |
number | Index of the reference of interest. |
||||||||||||
options |
object |
<optional> |
{}
|
Optional parameters. Properties
|
Returns:
Array containing the scores across all cells for this label.
- Type
- Float64Array | Float64WasmArray