Class Histogram
Object
Histogram
- All Implemented Interfaces:
Computation<List<DRes<SInt>>,ProtocolBuilderNumeric>
public class Histogram extends Object implements Computation<List<DRes<SInt>>,ProtocolBuilderNumeric>
Compute a 1-dimensional histogram for a data set.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description DRes<List<DRes<SInt>>>
buildComputation(ProtocolBuilderNumeric builder)
-
Constructor Details
-
Histogram
Given a list of upper bounds for buckets and a list of samples, this computation computes the 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 samples
-
-
Method Details
-
buildComputation
- Specified by:
buildComputation
in interfaceComputation<List<DRes<SInt>>,ProtocolBuilderNumeric>
-