SecreC 2 language 2.9.0 (2026.10)
Language and standard library reference
Loading...
Searching...
No Matches
Functions

Functions

template<domain D :shared3p >
D float32 fiveNumberSummary (D int32 data, D bool isAvailable)
 
template<domain D :shared3p >
D float64 fiveNumberSummary (D int64 data, D bool isAvailable)
 
template<domain D :shared3p >
D float32 fiveNumberSummary (D float32 data, D bool isAvailable)
 
template<domain D :shared3p >
D float64 fiveNumberSummary (D float64 data, D bool isAvailable)
 

Detailed Description

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

Function Documentation

◆ fiveNumberSummary() [1/4]

template<domain D :shared3p >
D float32 fiveNumberSummary ( D float32  data,
D bool  isAvailable 
)

◆ fiveNumberSummary() [2/4]

template<domain D :shared3p >
D float64 fiveNumberSummary ( D float64  data,
D bool  isAvailable 
)

◆ fiveNumberSummary() [3/4]

template<domain D :shared3p >
D float32 fiveNumberSummary ( D int32  data,
D bool  isAvailable 
)

◆ fiveNumberSummary() [4/4]

template<domain D :shared3p >
D float64 fiveNumberSummary ( D int64  data,
D bool  isAvailable 
)