MASKABC
From STX Wiki
Jump to navigationJump to search
Data masking / thresholding.
[SPU MASKABC A B SEL OUT Y]
| input | description | data type | value type | default value |
|---|---|---|---|---|
| A | input data | number, vector | variable | |
| B | masker or threshold | number, vector | variable | |
| C | replacement data | number, vector | variable | |
| COND | condition | number (int.), string | variable | 0
|
| output | description | data type | value type | comment |
| Y | masked data | same type as A | variable |
- Description
| SEL | Ynumber=f(Anumber,Bnumber) | Yvector=f(Avector,Bnumber) | Ynumber=f(Avector,Bvector) |
|---|---|---|---|
0 or A
|
Y = A | Y[i] = A[i] | Y[i] = A[i] |
1 or B
|
Y = B | Y[i] = B | Y[i] = B[i] |
2 or minimum
|
Y = min(A,B) | Y[i] = min(A[i],B) | Y[i] = min(A[i],B[i]) |
3 or maximum
|
Y = max(A,B) | Y[i] = max(A[i],B) | Y[i] = max(A[i],B[i]) |
with: 0 ≤ i < length of Avector
- See also