Class NoisyHistogram
Object
NoisyHistogram
- All Implemented Interfaces:
Computation<List<DRes<SInt>>,ProtocolBuilderNumeric>
public class NoisyHistogram extends Object implements Computation<List<DRes<SInt>>,ProtocolBuilderNumeric>
Compute a differentially private
histogram for a dataset.
-
Constructor Summary
Constructors Constructor Description NoisyHistogram(List<DRes<SInt>> buckets, List<DRes<SInt>> data, double epsilon)
Given a list of upper bounds for buckets and a list of samples, this computation computes a differentially private histogram for the given buckets. -
Method Summary
Modifier and Type Method Description DRes<List<DRes<SInt>>>
buildComputation(ProtocolBuilderNumeric builder)
-
Constructor Details
-
NoisyHistogram
Given a list of upper bounds for buckets and a list of samples, this computation computes a differentially private histogram for the given buckets. The last bucket contains all samples larger than the last upper bound.- Parameters:
buckets
- Soft upper bounds for bucketsdata
- List of samplesepsilon
- The privacy parameter
-
-
Method Details
-
buildComputation
- Specified by:
buildComputation
in interfaceComputation<List<DRes<SInt>>,ProtocolBuilderNumeric>
-