Constructor
new MultiMatrix(optionsopt)
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
{}
|
Optional parameters. Properties
|
Classes
Methods
add(i, matrix)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
i |
string | Name of a modality. |
matrix |
ScranMatrix | The matrix data for modality |
Returns:
matrix
is added to the MultiMatrix with name i
.
available() → {Array}
- Source:
Returns:
Names of the available modalities.
- Type
- Array
clone(i) → {MultiMatrix}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
i |
string | Name of a modality. |
Returns:
A deep copy of the current object.
- Type
- MultiMatrix
free()
- Source:
Returns:
Frees memory for all modalities in this MultiMatrix.
get(i) → {ScranMatrix}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
i |
string | Name of a modality. |
Returns:
The matrix data for modality i
.
- Type
- ScranMatrix
has(i) → {boolean}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
i |
string | Name of a modality. |
Returns:
Whether modality i
is available.
- Type
- boolean
numberOfColumns() → (nullable) {number}
- Source:
Returns:
Number of columns in the matrices.
If no matrices are available, null
is returned.
- Type
- number
remove(i)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
i |
string | Name of a modality. |
Returns:
Modality i
is removed from the MultiMatrix.
rename(from, to)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
from |
string | Old name of the modality. |
to |
string | New name for the modality. |
Returns:
The modality from
is renamed to to
, possibly replacing any existing modality at to
.