histogramDataAccess | R Documentation |
This function performs the data access step in the computation of a
differentially private histogram. The true values are computed using
hist
, while the sensitivities are calculated based on
bounded and unbounded differential privacy \insertCiteKifer2011DPpack
according to the theoretical values \insertCiteLiu2019bDPpack.
histogramDataAccess(x, breaks, mechanism)
x |
Numeric vector from which the histogram will be formed.. |
breaks |
Identical to the argument with the same name from
|
mechanism |
String indicating which mechanism to use for differential privacy. If the 'Laplace' mechanism is chosen, l1 sensitivities are returned. If the 'Gaussian' or 'analytic' mechanisms are chosen, l2 sensitivities are returned. |
List of the true histogram and the sensitivities calculated based on bounded and unbounded differential privacy.
Liu2019bDPpack
\insertRefKifer2011DPpack
histogramDataAccess(c(1,4,3,2,3), 'Sturges', 'Laplace')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.