|
template<domain D> |
D int32 | discreteDistributionCount (D int32[[1]] data, D bool[[1]] isAvailable, D int32 min, D int32 max, D int32 stepSize, uint K) |
|
template<domain D> |
D int64 | discreteDistributionCount (D int64[[1]] data, D bool[[1]] isAvailable, D int64 min, D int64 max, D int64 stepSize, uint K) |
|
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) |
stepSize | - difference between adjacent values in returned matrix (values in returned matrix are: min, min + stepSize, min + 2*stepSize, min + 3*stepSize, ...). Other 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) / stepSize
◆ discreteDistributionCount() [1/2]
D int32 discreteDistributionCount |
( |
D int32[[1]] |
data, |
|
|
D bool[[1]] |
isAvailable, |
|
|
D int32 |
min, |
|
|
D int32 |
max, |
|
|
D int32 |
stepSize, |
|
|
uint |
K |
|
) |
| |
◆ discreteDistributionCount() [2/2]
D int64 discreteDistributionCount |
( |
D int64[[1]] |
data, |
|
|
D bool[[1]] |
isAvailable, |
|
|
D int64 |
min, |
|
|
D int64 |
max, |
|
|
D int64 |
stepSize, |
|
|
uint |
K |
|
) |
| |