Class HistogramFiltered
java.lang.Object
dk.alexandra.fresco.stat.filtered.HistogramFiltered
- All Implemented Interfaces:
dk.alexandra.fresco.framework.builder.Computation<List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.framework.value.SInt>>,dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
public class HistogramFiltered extends Object implements dk.alexandra.fresco.framework.builder.Computation<List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.framework.value.SInt>>,dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
Compute a 1-dimensional histogram for a data set. The input is filtered, meaning that besides
the data set, the input also consists of a secret 0-1-vector (a
filter) which
indicates what entries of the data set should be included in the analysis-
Constructor Summary
Constructors Constructor Description HistogramFiltered(List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.framework.value.SInt>> buckets, List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.framework.value.SInt>> data, List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.framework.value.SInt>> filter)Given a list of upper bounds for buckets and a list of samples, this computation computes the histogram for the given buckets. -
Method Summary
Modifier and Type Method Description dk.alexandra.fresco.framework.DRes<List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.framework.value.SInt>>>buildComputation(dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric builder)
-
Constructor Details
-
HistogramFiltered
public HistogramFiltered(List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.framework.value.SInt>> buckets, List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.framework.value.SInt>> data, List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.framework.value.SInt>> filter)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
public dk.alexandra.fresco.framework.DRes<List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.framework.value.SInt>>> buildComputation(dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric builder)- Specified by:
buildComputationin interfacedk.alexandra.fresco.framework.builder.Computation<List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.framework.value.SInt>>,dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
-