intervals_chain
intervals_chain(X, binding, chain_mode)
Compute an intervals chain from a masked 1-D sequence.
Masked (missing) values in X are skipped; intervals are computed over the compressed sequence of unmasked elements only.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
masked_array
|
1-D masked array. Masked positions are treated as absent elements. |
required |
|
int
|
|
required |
|
int
|
|
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
Plain 1-D integer array (same as :func: |
Raises:
| Type | Description |
|---|---|
Not1DArrayException
|
When the underlying compressed sequence is not 1-dimensional. |
ValueError
|
When |