Class SampleVarianceFiltered

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

public class SampleVarianceFiltered
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 variance 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
    SampleVarianceFiltered​(List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>> observed, dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed> mean, List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.framework.value.SInt>> filter)  
    SampleVarianceFiltered​(List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>> observed, 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 root)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SampleVarianceFiltered

      public SampleVarianceFiltered​(List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>> observed, List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.framework.value.SInt>> filter)
    • SampleVarianceFiltered

      public SampleVarianceFiltered​(List<dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>> observed, dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed> mean, 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 root)
      Specified by:
      buildComputation in interface dk.alexandra.fresco.framework.builder.Computation<dk.alexandra.fresco.lib.fixed.SFixed,​dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>