Class SampleMeanFiltered

java.lang.Object
dk.alexandra.fresco.stat.filtered.SampleMeanFiltered
All Implemented Interfaces:
dk.alexandra.fresco.framework.builder.Computation<dk.alexandra.fresco.lib.fixed.SFixed,​dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>

public class SampleMeanFiltered
extends Object
implements dk.alexandra.fresco.framework.builder.Computation<dk.alexandra.fresco.lib.fixed.SFixed,​dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
Compute the sample mean of a set of samples. 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
    SampleMeanFiltered​(List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>> data, List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.framework.value.SInt>> filter)  
  • Method Summary

    Modifier and Type Method Description
    dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed> 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

    • SampleMeanFiltered

      public SampleMeanFiltered​(List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>> data, List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.framework.value.SInt>> filter)
  • Method Details

    • buildComputation

      public dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed> buildComputation​(dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric builder)
      Specified by:
      buildComputation in interface dk.alexandra.fresco.framework.builder.Computation<dk.alexandra.fresco.lib.fixed.SFixed,​dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>