|
template<domain D :shared3p > |
D float32 | fiveNumberSummary (D int32[[1]] data, D bool[[1]] isAvailable) |
|
template<domain D :shared3p > |
D float64 | fiveNumberSummary (D int64[[1]] data, D bool[[1]] isAvailable) |
|
template<domain D :shared3p > |
D float32 | fiveNumberSummary (D float32[[1]] data, D bool[[1]] isAvailable) |
|
template<domain D :shared3p > |
D float64 | fiveNumberSummary (D float64[[1]] data, D bool[[1]] isAvailable) |
|
Find the minimum, lower quartile, median, upper quartile and maximum of a sample.
- Note
- D - shared3p protection domain
-
Supported types - int32 / int64 / float32 / float64
-
A version of this function which hides the sample size was implemented for the paper "Going Beyond Millionaires:
Privacy-Preserving Statistical Analysis" but is not included due to private integer division not working.
- Parameters
-
data | - input sample |
isAvailable | - vector indicating which elements of the input sample are available |
- Returns
- returns a vector containing the minimum, lower quartile, median, upper quartile and maximum of the input sample (in that order). If the input size is less than five, a vector of zeroes is returned.
- Leakage
- Leaks the number of true values in isAvailable
◆ fiveNumberSummary() [1/4]
D float32 fiveNumberSummary |
( |
D float32[[1]] |
data, |
|
|
D bool[[1]] |
isAvailable |
|
) |
| |
◆ fiveNumberSummary() [2/4]
D float64 fiveNumberSummary |
( |
D float64[[1]] |
data, |
|
|
D bool[[1]] |
isAvailable |
|
) |
| |
◆ fiveNumberSummary() [3/4]
D float32 fiveNumberSummary |
( |
D int32[[1]] |
data, |
|
|
D bool[[1]] |
isAvailable |
|
) |
| |
◆ fiveNumberSummary() [4/4]
D float64 fiveNumberSummary |
( |
D int64[[1]] |
data, |
|
|
D bool[[1]] |
isAvailable |
|
) |
| |