Find discrete distribution of an input vector.
- Note
- D - any protection domain
-
Supported types - int32 / int64
- Parameters
-
data | - input vector |
isAvailable | - vector indicating which elements of the input vector are available |
min | - fixed lowest value in returned matrix (lower values from input vector are discarded) |
max | - fixed highest value in returned matrix (higher values from input vector are discarded) |
K | - minimum input size |
- Returns
- returns a matrix where the first row contains discrete distribution values and the second row contains counts for each value
- Leakage
- Leaks max - min
◆ discreteDistributionCount() [1/2]
D int32 discreteDistributionCount |
( |
D int32[[1]] |
data, |
|
|
D bool[[1]] |
isAvailable, |
|
|
D int32 |
min, |
|
|
D int32 |
max, |
|
|
uint |
K |
|
) |
| |
◆ discreteDistributionCount() [2/2]
D int64 discreteDistributionCount |
( |
D int64[[1]] |
data, |
|
|
D bool[[1]] |
isAvailable, |
|
|
D int64 |
min, |
|
|
D int64 |
max, |
|
|
uint |
K |
|
) |
| |