Class SampleVariance

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

public class SampleVariance
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 for a list of observations.
  • Constructor Summary

    Constructors 
    Constructor Description
    SampleVariance​(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)
    Create a new computation with a given computed sample mean.
  • 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

    • SampleVariance

      public SampleVariance​(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)
      Create a new computation with a given computed sample mean. Use SampleMean to compute the mean.
  • 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>