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)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 buckets
      data - 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:
      buildComputation in interface 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>